11---
2- require :
3- - rubocop-rspec
4- - rubocop-i18n
2+ require : rubocop-rspec
53AllCops :
6- TargetRubyVersion : ' 2.1'
4+ DisplayCopNames : true
5+ TargetRubyVersion : ' 2.3'
76 Include :
87 - " ./**/*.rb"
98 Exclude :
109 - bin/*
1110 - " .vendor/**/*"
12- - Gemfile
13- - Rakefile
11+ - " **/ Gemfile"
12+ - " **/ Rakefile"
1413 - pkg/**/*
1514 - spec/fixtures/**/*
15+ - spec/classes/**/*
16+ - spec/acceptance/**/*
17+ - spec/acceptance_swarm/**/*
18+ - spec/defines/**/*
19+ - spec/unit/**/*
1620 - vendor/**/*
21+ - " **/Puppetfile"
22+ - " **/Vagrantfile"
23+ - " **/Guardfile"
1724Metrics/LineLength :
1825 Description : People have wide screens, use them.
1926 Max : 200
20- Enabled : false
27+ GetText/DecorateString :
28+ Description : We don't want to decorate test output.
29+ Exclude :
30+ - spec/*
2131RSpec/BeforeAfterAll :
2232 Description : Beware of using after(:all) as it may cause state to leak between tests.
2333 A necessary evil in acceptance testing.
2434 Exclude :
2535 - spec/acceptance/**/*.rb
26- - spec/acceptance_swarm/**/*.rb
2736RSpec/HookArgument :
2837 Description : Prefer explicit :each argument, matching existing module's style
2938 EnforcedStyle : each
@@ -40,26 +49,13 @@ Style/EmptyElse:
4049Style/FormatString :
4150 Description : Following the main puppet project's style, prefer the % format format.
4251 EnforcedStyle : percent
43- Exclude :
44- - lib/puppet/provider/docker_volume/ruby.rb
45- - lib/puppet/provider/docker_network/ruby.rb
46- - lib/puppet/parser/functions/docker_secrets_flags.rb
47- - lib/puppet/parser/functions/docker_run_flags.rb
48- - lib/puppet/type/docker_network.rb
49- - lib/puppet/type/docker_volume.rb
5052Style/FormatStringToken :
5153 Description : Following the main puppet project's style, prefer the simpler template
5254 tokens over annotated ones.
5355 EnforcedStyle : template
5456Style/Lambda :
5557 Description : Prefer the keyword for easier discoverability.
5658 EnforcedStyle : literal
57- Enabled : true
58- Exclude :
59- - lib/puppet/provider/docker_volume/ruby.rb
60- - lib/puppet/parser/functions/docker_secrets_flags.rb
61- - lib/puppet/parser/functions/docker_run_flags.rb
62- - lib/puppet/provider/docker_network/ruby.rb
6359Style/RegexpLiteral :
6460 Description : Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
6561 EnforcedStyle : percent_r
@@ -79,18 +75,28 @@ Style/TrailingCommaInLiteral:
7975Style/SymbolArray :
8076 Description : Using percent style obscures symbolic intent of array's contents.
8177 EnforcedStyle : brackets
78+ RSpec/MessageSpies :
79+ EnforcedStyle : receive
80+ Style/Documentation :
81+ Exclude :
82+ - lib/puppet/parser/functions/**/*
83+ - spec/**/*
84+ Style/WordArray :
85+ EnforcedStyle : brackets
8286Style/CollectionMethods :
8387 Enabled : true
8488Style/MethodCalledOnDoEndBlock :
8589 Enabled : true
8690Style/StringMethods :
8791 Enabled : true
92+ Layout/EndOfLine :
93+ Enabled : false
94+ Layout/IndentHeredoc :
95+ Enabled : false
8896Metrics/AbcSize :
8997 Enabled : false
9098Metrics/BlockLength :
9199 Enabled : false
92- Metrics/LineLength :
93- Enabled : false
94100Metrics/ClassLength :
95101 Enabled : false
96102Metrics/CyclomaticComplexity :
@@ -105,34 +111,21 @@ Metrics/PerceivedComplexity:
105111 Enabled : false
106112RSpec/DescribeClass :
107113 Enabled : false
114+ RSpec/ExampleLength :
115+ Enabled : false
108116RSpec/MessageExpectation :
109117 Enabled : false
118+ RSpec/MultipleExpectations :
119+ Enabled : false
120+ RSpec/NestedGroups :
121+ Enabled : false
110122Style/AsciiComments :
111123 Enabled : false
112124Style/IfUnlessModifier :
113125 Enabled : false
114126Style/SymbolProc :
115127 Enabled : false
116- Style/HashSyntax :
117- UseHashRocketsWithSymbolValues : true
118- Style/StringLiterals :
119- EnforcedStyle : single_quotes
120- SupportedStyles :
121- - single_quotes
122- - double_quotes
123- Exclude :
124- - lib/puppet/provider/docker_compose/ruby.rb
125- GetText/DecorateString :
126- Enabled : true
127- Exclude :
128- - lib/puppet/type/docker_compose.rb
129- GetText/DecorateFunctionMessage :
130- Enabled : true
128+ Style/SafeNavigation :
129+ Description : Does not work with all ruby versions
131130 Exclude :
132- - lib/puppet/type/docker_network.rb
133- - lib/puppet/type/docker_volume.rb
134- - lib/puppet/provider/docker_compose/ruby.rb
135- GetText/DecorateStringFormattingUsingInterpolation :
136- Enabled : true
137- GetText/DecorateStringFormattingUsingPercent :
138- Enabled : true
131+ - lib/puppet/parser/functions/docker_exec_flags.rb
0 commit comments