@@ -14,65 +14,7 @@ AllCops:
1414 - pkg/**/*
1515 - spec/fixtures/**/*
1616 - vendor/**/*
17- Layout/LineLength :
18- Description : People have wide screens, use them.
19- Max : 200
20- RSpec/BeforeAfterAll :
21- Description : Beware of using after(:all) as it may cause state to leak between tests.
22- A necessary evil in acceptance testing.
23- Exclude :
24- - spec/acceptance/**/*.rb
25- RSpec/HookArgument :
26- Description : Prefer explicit :each argument, matching existing module's style
27- EnforcedStyle : each
28- RSpec/SubjectStub :
29- Exclude :
30- - ' spec/puppet/resource_api/base_context_spec.rb'
31- Style/BlockDelimiters :
32- Description : Prefer braces for chaining. Mostly an aesthetical choice. Better to
33- be consistent then.
34- EnforcedStyle : braces_for_chaining
35- Style/ClassAndModuleChildren :
36- Description : Compact style reduces the required amount of indentation.
37- EnforcedStyle : compact
38- # this needs to be easily usable in the gemspec
39- Enabled : false
40- Style/EmptyElse :
41- Description : Enforce against empty else clauses, but allow `nil` for clarity.
42- EnforcedStyle : empty
43- Style/FormatString :
44- Description : Following the main puppet project's style, prefer the % format format.
45- EnforcedStyle : percent
46- Style/FormatStringToken :
47- Description : Following the main puppet project's style, prefer the simpler template
48- tokens over annotated ones.
49- EnforcedStyle : template
50- Style/Lambda :
51- Description : Prefer the keyword for easier discoverability.
52- EnforcedStyle : literal
53- Style/RegexpLiteral :
54- Description : Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
55- EnforcedStyle : percent_r
56- Style/TernaryParentheses :
57- Description : Checks for use of parentheses around ternary conditions. Enforce parentheses
58- on complex expressions for better readability, but seriously consider breaking
59- it up.
60- EnforcedStyle : require_parentheses_when_complex
61- Style/TrailingCommaInArguments :
62- Description : Prefer always trailing comma on multiline argument lists. This makes
63- diffs, and re-ordering nicer.
64- EnforcedStyleForMultiline : comma
65- Style/SymbolArray :
66- Description : Using percent style obscures symbolic intent of array's contents.
67- EnforcedStyle : brackets
68- Layout/EndOfLine :
69- Enabled : false
70- Style/CollectionMethods :
71- Enabled : true
72- Style/MethodCalledOnDoEndBlock :
73- Enabled : true
74- Style/StringMethods :
75- Enabled : true
17+
7618Metrics/AbcSize :
7719 Enabled : false
7820Metrics/BlockLength :
@@ -85,71 +27,17 @@ Metrics/MethodLength:
8527 Enabled : false
8628Metrics/ModuleLength :
8729 Enabled : false
88- Metrics/ParameterLists :
89- Enabled : false
9030Metrics/PerceivedComplexity :
9131 Enabled : false
92- RSpec/DescribeClass :
93- Enabled : false
94- RSpec/ExampleLength :
95- Enabled : false
96- RSpec/MessageExpectation :
97- Enabled : false
98- RSpec/MultipleExpectations :
99- Enabled : false
100- RSpec/NestedGroups :
101- Enabled : false
102- Style/AsciiComments :
103- Enabled : false
104- Style/IfUnlessModifier :
105- Enabled : false
106- Style/SymbolProc :
32+ Style/ClassAndModuleChildren :
10733 Enabled : false
108-
109- # local overrides
110-
111- # overridden for local conventions
112- Naming/FileName :
113- Exclude :
114- - ' puppet-resource_api.gemspec'
115-
116- # metaprogramming makes everything "fun"
34+ Naming/MethodParameterName :
35+ AllowedNames :
36+ - is
11737Lint/NestedMethodDefinition :
11838 Exclude :
11939 - ' lib/puppet/resource_api.rb'
120-
121- # Interacting with external API makes message spies pretty useless
40+ Layout/LineLength :
41+ Max : 200
12242RSpec/MessageSpies :
12343 Enabled : false
124-
125- # requires 2.3's squiggly HEREDOC support, which we can't use, yet
126- # see http://www.virtuouscode.com/2016/01/06/about-the-ruby-squiggly-heredoc-syntax/
127- Layout/HeredocIndentation :
128- Enabled : false
129-
130- # Updated in 0.53 (or thereabouts)
131- Style/TrailingCommaInArrayLiteral :
132- Description : Prefer always trailing comma on multiline literals. This makes diffs,
133- and re-ordering nicer.
134- EnforcedStyleForMultiline : comma
135- Style/TrailingCommaInHashLiteral :
136- Description : Prefer always trailing comma on multiline literals. This makes diffs,
137- and re-ordering nicer.
138- EnforcedStyleForMultiline : comma
139-
140- # Add allowing "is", as it is a technical term in puppet
141- Naming/MethodParameterName :
142- Description : Checks for method parameter names that contain capital letters, end in
143- numbers, or do not meet a minimal length.
144- Enabled : true
145- MinNameLength : 3
146- AllowNamesEndingInNumbers : true
147- AllowedNames :
148- - io
149- - id
150- - is
151- ForbiddenNames : []
152-
153- # This cop breaks syntax highlighting in VSCode
154- Layout/ClosingHeredocIndentation :
155- Enabled : false
0 commit comments