diff --git a/.rubocop.yml b/.rubocop.yml index 21b82b99..e01a10b8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,38 +1,33 @@ --- -require: -- rubocop-performance -- rubocop-rspec +require: [rubocop-performance, rubocop-rspec] AllCops: NewCops: enable DisplayCopNames: true TargetRubyVersion: '2.6' - Include: - - "**/*.rb" + Include: ['**/*.rb'] Exclude: - - bin/* - - ".vendor/**/*" - - "**/Gemfile" - - "**/Rakefile" - - pkg/**/* - - spec/fixtures/**/* - - vendor/**/* - - "**/Puppetfile" - - "**/Vagrantfile" - - "**/Guardfile" + - bin/* + - .vendor/**/* + - '**/Gemfile' + - '**/Rakefile' + - pkg/**/* + - spec/fixtures/**/* + - vendor/**/* + - '**/Puppetfile' + - '**/Vagrantfile' + - '**/Guardfile' Layout/LineLength: Description: People have wide screens, use them. Max: 200 RSpec/BeforeAfterAll: Description: Beware of using after(:all) as it may cause state to leak between tests. A necessary evil in acceptance testing. - Exclude: - - spec/acceptance/**/*.rb + Exclude: [spec/acceptance/**/*.rb] RSpec/HookArgument: Description: Prefer explicit :each argument, matching existing module's style EnforcedStyle: each RSpec/DescribeSymbol: - Exclude: - - spec/unit/facter/**/*.rb + Exclude: [spec/unit/facter/**/*.rb] Style/BlockDelimiters: Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to be consistent then. @@ -75,9 +70,7 @@ Style/SymbolArray: RSpec/MessageSpies: EnforcedStyle: receive Style/Documentation: - Exclude: - - lib/puppet/parser/functions/**/* - - spec/**/* + Exclude: [lib/puppet/parser/functions/**/*, spec/**/*] Style/WordArray: EnforcedStyle: brackets Performance/AncestorsInclude: diff --git a/spec/default_facts.yml b/spec/default_facts.yml index 3346c394..c8198ca5 100644 --- a/spec/default_facts.yml +++ b/spec/default_facts.yml @@ -1,9 +1,6 @@ -# Use default_module_facts.yml for module specific facts. -# -# Facts specified here will override the values provided by rspec-puppet-facts. --- networking: - ip: "172.16.254.254" - ip6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA" - mac: "AA:AA:AA:AA:AA:AA" + ip: 172.16.254.254 + ip6: FE80:0000:0000:0000:AAAA:AAAA:AAAA + mac: AA:AA:AA:AA:AA:AA is_pe: false