@@ -25,7 +25,22 @@ I18n/RailsI18n/DecorateString:
25
25
# Configuration parameters: AllowedMethods.
26
26
# AllowedMethods: enums
27
27
Lint/ConstantDefinitionInBlock :
28
- Enabled : false
28
+ Exclude :
29
+ - ' lib/puppet/face/config.rb'
30
+ - ' lib/puppet/face/help.rb'
31
+ - ' lib/puppet/face/node/clean.rb'
32
+ - ' lib/puppet/provider/package/aix.rb'
33
+ - ' lib/puppet/provider/package/apt.rb'
34
+ - ' lib/puppet/provider/package/gem.rb'
35
+ - ' lib/puppet/provider/package/pip.rb'
36
+ - ' lib/puppet/provider/package/yum.rb'
37
+ - ' lib/puppet/provider/service/upstart.rb'
38
+ - ' lib/puppet/provider/user/directoryservice.rb'
39
+ - ' lib/puppet/type/file.rb'
40
+ - ' lib/puppet/type/file/source.rb'
41
+ - ' lib/puppet/type/resources.rb'
42
+ - ' lib/puppet/type/schedule.rb'
43
+ - ' lib/puppet/type/tidy.rb'
29
44
30
45
Lint/MissingSuper :
31
46
Enabled : false
@@ -85,6 +100,90 @@ Lint/ToJSON:
85
100
Lint/UnusedMethodArgument :
86
101
Enabled : false
87
102
103
+ Performance/BlockGivenWithExplicitBlock : # new in 1.9
104
+ Enabled : false
105
+
106
+ Performance/CollectionLiteralInLoop : # new in 1.8
107
+ Enabled : false
108
+
109
+ Performance/ConstantRegexp : # new in 1.9
110
+ Enabled : false
111
+
112
+ # This cop supports safe auto-correction (--auto-correct).
113
+ Performance/Count :
114
+ Exclude :
115
+ - ' lib/puppet/confine/any.rb'
116
+ - ' lib/puppet/confine/false.rb'
117
+ - ' lib/puppet/confine/true.rb'
118
+ - ' lib/puppet/graph/relationship_graph.rb'
119
+ - ' lib/puppet/provider.rb'
120
+
121
+ # This cop supports unsafe auto-correction (--auto-correct-all).
122
+ Performance/InefficientHashSearch :
123
+ Exclude :
124
+ - ' lib/puppet/face/node/clean.rb'
125
+ - ' lib/puppet/provider/nameservice/directoryservice.rb'
126
+ - ' lib/puppet/provider/user/directoryservice.rb'
127
+ - ' lib/puppet/resource.rb'
128
+ - ' lib/puppet/util/windows/adsi.rb'
129
+
130
+ Performance/MethodObjectAsBlock : # new in 1.9
131
+ Enabled : false
132
+
133
+ # This cop supports safe auto-correction (--auto-correct).
134
+ Performance/RedundantBlockCall :
135
+ Exclude :
136
+ - ' lib/puppet/application.rb'
137
+ - ' lib/puppet/context.rb'
138
+ - ' lib/puppet/file_bucket/file.rb'
139
+ - ' lib/puppet/functions/max.rb'
140
+ - ' lib/puppet/functions/min.rb'
141
+ - ' lib/puppet/gettext/stubs.rb'
142
+ - ' lib/puppet/network/http/api/server/v3.rb'
143
+ - ' lib/puppet/pal/pal_impl.rb'
144
+ - ' lib/puppet/pops/adaptable.rb'
145
+ - ' lib/puppet/pops/lookup/invocation.rb'
146
+ - ' lib/puppet/pops/model/factory.rb'
147
+ - ' lib/puppet/util.rb'
148
+
149
+ Performance/RedundantEqualityComparisonBlock : # new in 1.10
150
+ Enabled : false
151
+
152
+ # This cop supports unsafe auto-correction (--auto-correct-all).
153
+ # Configuration parameters: MaxKeyValuePairs.
154
+ Performance/RedundantMerge :
155
+ Exclude :
156
+ - ' lib/puppet/x509/cert_provider.rb'
157
+
158
+ Performance/RedundantSplitRegexpArgument : # new in 1.10
159
+ Enabled : false
160
+
161
+ Performance/RedundantStringChars : # new in 1.7
162
+ Enabled : false
163
+
164
+ # This cop supports safe auto-correction (--auto-correct).
165
+ Performance/RegexpMatch :
166
+ Enabled : false
167
+
168
+ Performance/SortReverse : # new in 1.7
169
+ Enabled : false
170
+
171
+ Performance/Squeeze : # new in 1.7
172
+ Enabled : false
173
+
174
+ Performance/StringIdentifierArgument : # new in 1.13
175
+ Enabled : false
176
+
177
+ Performance/StringInclude : # new in 1.7
178
+ Enabled : false
179
+
180
+ Performance/Sum : # new in 1.8
181
+ Enabled : false
182
+
183
+ # This cop supports safe auto-correction (--auto-correct).
184
+ Performance/UnfreezeString :
185
+ Enabled : false
186
+
88
187
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
89
188
# SupportedStyles: inline, group
90
189
Style/AccessModifierDeclarations :
@@ -280,7 +379,6 @@ Style/EmptyBlockParameter:
280
379
# This cop supports safe auto-correction (--auto-correct).
281
380
Style/EmptyCaseCondition :
282
381
Exclude :
283
- - ' lib/puppet/pops/lookup/hiera_config.rb'
284
382
- ' lib/puppet/pops/serialization/serializer.rb'
285
383
- ' lib/puppet/pops/types/type_calculator.rb'
286
384
- ' lib/puppet/settings.rb'
@@ -298,7 +396,6 @@ Style/EmptyElse:
298
396
# This cop supports safe auto-correction (--auto-correct).
299
397
Style/EmptyLiteral :
300
398
Exclude :
301
- - ' lib/puppet/indirector/face.rb'
302
399
- ' lib/puppet/parser/scope.rb'
303
400
- ' lib/puppet/pops/puppet_stack.rb'
304
401
- ' lib/puppet/pops/visitor.rb'
@@ -327,11 +424,6 @@ Style/Encoding:
327
424
- ' lib/puppet/type/package.rb'
328
425
- ' lib/puppet/util/windows/service.rb'
329
426
330
- # This cop supports safe auto-correction (--auto-correct).
331
- Style/EvalWithLocation :
332
- Exclude :
333
- - ' lib/puppet/interface/action_builder.rb'
334
-
335
427
# This cop supports safe auto-correction (--auto-correct).
336
428
Style/EvenOdd :
337
429
Exclude :
@@ -511,7 +603,6 @@ Style/MethodDefParentheses:
511
603
Exclude :
512
604
- ' lib/puppet/pops/evaluator/evaluator_impl.rb'
513
605
- ' lib/puppet/pops/evaluator/relationship_operator.rb'
514
- - ' lib/puppet/pops/evaluator/runtime3_support.rb'
515
606
- ' lib/puppet/pops/issues.rb'
516
607
- ' lib/puppet/pops/label_provider.rb'
517
608
- ' lib/puppet/pops/model/factory.rb'
@@ -622,7 +713,6 @@ Style/NestedModifier:
622
713
Style/NestedParenthesizedCalls :
623
714
Exclude :
624
715
- ' lib/puppet/provider/user/directoryservice.rb'
625
- - ' lib/puppet/type/service.rb'
626
716
627
717
# This cop supports safe auto-correction (--auto-correct).
628
718
Style/NestedTernaryOperator :
@@ -648,7 +738,6 @@ Style/Next:
648
738
# SupportedStyles: predicate, comparison
649
739
Style/NilComparison :
650
740
Exclude :
651
- - ' lib/puppet/pops/model/ast.rb'
652
741
- ' lib/puppet/pops/types/type_factory.rb'
653
742
- ' lib/puppet/pops/types/types.rb'
654
743
- ' lib/puppet/provider/package/dnfmodule.rb'
@@ -681,7 +770,7 @@ Style/NumericLiteralPrefix:
681
770
# This cop supports safe auto-correction (--auto-correct).
682
771
# Configuration parameters: Strict, AllowedNumbers.
683
772
Style/NumericLiterals :
684
- MinDigits : 20
773
+ MinDigits : 11
685
774
686
775
# This cop supports unsafe auto-correction (--auto-correct-all).
687
776
# Configuration parameters: EnforcedStyle, IgnoredMethods.
@@ -832,7 +921,6 @@ Style/RedundantException:
832
921
# Configuration parameters: SafeForConstants.
833
922
Style/RedundantFetchBlock :
834
923
Exclude :
835
- - ' lib/puppet/pops/model/ast.rb'
836
924
- ' lib/puppet/pops/types/p_sem_ver_range_type.rb'
837
925
838
926
# This cop supports safe auto-correction (--auto-correct).
@@ -1187,4 +1275,4 @@ Style/ZeroLengthPredicate:
1187
1275
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
1188
1276
# URISchemes: http, https
1189
1277
Layout/LineLength :
1190
- Enabled : false
1278
+ Max : 582
0 commit comments