11---
2+ inherit_from : .rubocop_todo.yml
3+
24require :
5+ - rubocop-performance
36- rubocop-rspec
4- - rubocop-i18n
57AllCops :
8+ NewCops : enable
69 DisplayCopNames : true
7- TargetRubyVersion : ' 2.1'
10+ ExtraDetails : true
11+ DisplayStyleGuide : true
12+ TargetRubyVersion : ' 2.7'
813 Include :
9- - " ./ **/*.rb"
14+ - " **/*.rb"
1015 Exclude :
1116 - bin/*
1217 - " .vendor/**/*"
@@ -18,16 +23,9 @@ AllCops:
1823 - " **/Puppetfile"
1924 - " **/Vagrantfile"
2025 - " **/Guardfile"
21- Metrics /LineLength :
26+ Layout /LineLength :
2227 Description : People have wide screens, use them.
2328 Max : 200
24- GetText :
25- Enabled : false
26- GetText/DecorateString :
27- Description : We don't want to decorate test output.
28- Exclude :
29- - spec/**/*
30- Enabled : false
3129RSpec/BeforeAfterAll :
3230 Description : Beware of using after(:all) as it may cause state to leak between tests.
3331 A necessary evil in acceptance testing.
@@ -36,6 +34,9 @@ RSpec/BeforeAfterAll:
3634RSpec/HookArgument :
3735 Description : Prefer explicit :each argument, matching existing module's style
3836 EnforcedStyle : each
37+ RSpec/DescribeSymbol :
38+ Exclude :
39+ - spec/unit/facter/**/*.rb
3940Style/BlockDelimiters :
4041 Description : Prefer braces for chaining. Mostly an aesthetical choice. Better to
4142 be consistent then.
@@ -68,7 +69,7 @@ Style/TrailingCommaInArguments:
6869 Description : Prefer always trailing comma on multiline argument lists. This makes
6970 diffs, and re-ordering nicer.
7071 EnforcedStyleForMultiline : comma
71- Style/TrailingCommaInLiteral :
72+ Style/TrailingCommaInArrayLiteral :
7273 Description : Prefer always trailing comma on multiline literals. This makes diffs,
7374 and re-ordering nicer.
7475 EnforcedStyleForMultiline : comma
@@ -83,51 +84,6 @@ Style/Documentation:
8384 - spec/**/*
8485Style/WordArray :
8586 EnforcedStyle : brackets
86- Style/CollectionMethods :
87- Enabled : true
88- Style/MethodCalledOnDoEndBlock :
89- Enabled : true
90- Style/StringMethods :
91- Enabled : true
92- GetText/DecorateFunctionMessage :
93- Enabled : false
94- GetText/DecorateStringFormattingUsingInterpolation :
95- Enabled : false
96- GetText/DecorateStringFormattingUsingPercent :
97- Enabled : false
98- Layout/EndOfLine :
99- Enabled : false
100- Layout/IndentHeredoc :
101- Enabled : false
102- Metrics/AbcSize :
103- Enabled : false
104- Metrics/BlockLength :
105- Enabled : false
106- Metrics/ClassLength :
107- Enabled : false
108- Metrics/CyclomaticComplexity :
109- Enabled : false
110- Metrics/MethodLength :
111- Enabled : false
112- Metrics/ModuleLength :
113- Enabled : false
114- Metrics/ParameterLists :
115- Enabled : false
116- Metrics/PerceivedComplexity :
117- Enabled : false
118- RSpec/DescribeClass :
119- Enabled : false
120- RSpec/ExampleLength :
121- Enabled : false
122- RSpec/MessageExpectation :
123- Enabled : false
124- RSpec/MultipleExpectations :
125- Enabled : false
126- RSpec/NestedGroups :
127- Enabled : false
128- Style/AsciiComments :
129- Enabled : false
130- Style/IfUnlessModifier :
131- Enabled : false
132- Style/SymbolProc :
133- Enabled : false
87+ RSpec/NamedSubject :
88+ Exclude :
89+ - spec/defines/init_spec.rb
0 commit comments