cookstyle 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4be54301aceb07163e9df428d5fdc19e7588847d
4
- data.tar.gz: fc0754e030cff57bf4231e1bce66f66ecd005ee8
2
+ SHA256:
3
+ metadata.gz: 8a37a4a7a9ec43c83e6085e8971b23619ecbc3856bb23e809e1e75bd862b9969
4
+ data.tar.gz: 6c0985615bebda8f779282554a089be993b8d3bb92efdcad2a52b46cef7a79a8
5
5
  SHA512:
6
- metadata.gz: baa26ed16171be9c3418a5b53d141bae11b02a17fa1a6c7f2a5fc07527d0bca5837cb36b1cfad82cf6a0c8f73528c139d38d0232c77874e44e1230540cc7ad3f
7
- data.tar.gz: 6fe990ac1b9421ef71f0a3b35af5c3e6ad0216d58b09811d770aeb24be53ec4f56a845903ed4f4c6fc3ffceda858cf9b042d48e8c11d3de8756d5b4c1ed1f4f5
6
+ metadata.gz: 92eb8d8eb33a6523c05c29013f670305d17ac480a0e992081ebcd15fc2a6b716ccd59fe6889ed87c0f1f098f853343d67035664021b98023a739ba3cc40a8302
7
+ data.tar.gz: 420492d447f9d021f3a1b98074f7e12d0e4b5268ede661fb5db3d79bedf24672373548c247b825a80d114dff7ca68605db795d1db8279ffb392a8842a7c5b85d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Cookstyle Changelog
2
2
 
3
+ ## 3.0.0 (2018-05-07)
4
+
5
+ The RuboCop engine has been updated from 0.49 to 0.55 in this release of Cookstyle. This fixes a very large number of bugs and may lead to new warnings being shown for existing rules. Additionally the names of many rules were changed which may require updating your .rubocop.yml files if you previously disabled these rules.
6
+
7
+ ### Newly Enabled Cops:
8
+
9
+ - Bundler/InsecureProtocolSource
10
+ - Layout/EmptyComment
11
+ - Layout/EmptyLinesAroundArguments
12
+ - Lint/BigDecimalNew
13
+ - Lint/BooleanSymbol
14
+ - Lint/InterpolationCheck:
15
+ - Lint/RedundantWithIndex
16
+ - Lint/RedundantWithObject
17
+ - Lint/RegexpInCondition
18
+ - Lint/ShadowedArgument
19
+ - Lint/UnneededCopEnableDirective
20
+ - Lint/UnneededRequireStatement
21
+ - Lint/UriRegexp
22
+ - Performance/UnneededSort
23
+ - Performance/UriDefaultParser
24
+ - Style/MinMax
25
+ - Style/RedundantConditional
26
+ - Style/TrailingBodyOnMethodDefinition
27
+ - Style/UnpackFirst
28
+
29
+ ## 2.2.0 (2017-12-6)
30
+
31
+ - Style/GuardClause disabled as it forces consistency that may sacrifice readability in a cookbook.
32
+
3
33
  ## 2.1.0 (2017-08-24)
4
34
 
5
35
  - The Layout/EndOfLine cop now enforces a LF for line endings. This prevents users on Windows from seeing the "Carriage return character missing" error message.
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/cookstyle.svg)](https://badge.fury.io/rb/cookstyle) [![Build Status](https://travis-ci.org/chef/cookstyle.svg?branch=master)](https://travis-ci.org/chef/cookstyle)
4
4
 
5
- Cookstyle is a set of opinions about ruby code that are specific to cookbooks. Running both cookstyle and rubocop on the same codebase will result, by design, in changes being applied and then removed. Needless to say you should _not_ use both tools on the same cookbook.
5
+ Cookstyle is a set of opinions about Ruby code that are specific to cookbooks. Running both cookstyle and RuboCop on the same codebase will result, by design, in changes being applied and then removed. Needless to say you should _not_ use both tools on the same cookbook.
6
+
7
+ Cookstyle is infrequently updated, since the rule set is mature and fairly stable. We sync new RuboCop versions when there's advantage to doing so, but are conservative by default.
6
8
 
7
9
  Cookstyle is included in the ChefDK, and can be used from the command line by running `cookstyle`.
8
10
 
@@ -14,13 +16,13 @@ The project itself is a derivative of [finstyle](https://github.com/fnichol/fins
14
16
 
15
17
  ## NOTE CAREFULLY ABOUT UPDATING COOKSTYLE
16
18
 
17
- This is designed to allow bumping the rubocop engine while keeping backwards compatibility with the config and not requiring all the cookbooks to update.
19
+ This is designed to allow bumping the RuboCop engine while keeping backwards compatibility with the config and not requiring all the cookbooks to update.
18
20
 
19
- The [cookstyle_base.yml](https://github.com/chef/cookstyle/blob/master/config/cookstyle_base.yml) file is (essentially) the enabled.yml file from 0.37.2 (as of this writing) which is applied on top of 0.49.1 with all the rules disabled. It pins the default enabled set to 0.37.2 compatibility while running under the 0.49.1 engine.
21
+ The [cookstyle_base.yml](https://github.com/chef/cookstyle/blob/master/config/cookstyle_base.yml) file is (essentially) the enabled.yml file from 0.37.2 (as of this writing) which is applied on top of 0.55.0 with all the rules disabled. It pins the default enabled set to 0.37.2 compatibility while running under the 0.55.0 engine.
20
22
 
21
23
  There is no rake task for updating the `cookstyle_base.yml` file. It was generated by hand -- the Description and other fields need to be dropped out of it.
22
24
 
23
- It may be necessary to edit that file (again by hand) to resolve issues with later rubocop engines changing cop names (renaming, splitting up, etc).
25
+ It may be necessary to edit that file (again by hand) to resolve issues with later RuboCop engines changing cop names (renaming, splitting up, etc).
24
26
 
25
27
  Occasionally the `cookstyle_base.yml` file should be updated, which will generate a lot of work to fix every cookbook that cookstyle runs against.
26
28
 
data/config/cookstyle.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.0
2
+ TargetRubyVersion: 2.4
3
3
  Exclude:
4
4
  - vendor/**/*
5
5
  - Guardfile
@@ -10,7 +10,7 @@ Documentation:
10
10
  Enabled: false
11
11
  Encoding:
12
12
  Enabled: false
13
- Style/FileName:
13
+ Naming/FileName:
14
14
  Enabled: false
15
15
  Style/Alias:
16
16
  Enabled: false
@@ -40,7 +40,12 @@ PerceivedComplexity:
40
40
  Enabled: false
41
41
 
42
42
  # https://github.com/chef/cookstyle/pull/5
43
- Style/TrailingCommaInLiteral:
43
+ Style/TrailingCommaInHashLiteral:
44
+ Enabled: true
45
+ EnforcedStyleForMultiline: comma
46
+
47
+ # https://github.com/chef/cookstyle/pull/5
48
+ Style/TrailingCommaInArrayLiteral:
44
49
  Enabled: true
45
50
  EnforcedStyleForMultiline: comma
46
51
 
@@ -50,8 +55,7 @@ Style/NumericLiterals:
50
55
 
51
56
  # This often triggers no matter what you do with inspec/serverspec matchers
52
57
  Lint/AmbiguousRegexpLiteral:
53
- Exclude:
54
- - '**/test/**/*'
58
+ Enabled: false
55
59
 
56
60
  # some names are not ascii and this prevents copyright comments
57
61
  Style/AsciiComments:
@@ -118,6 +122,10 @@ Bundler/DuplicatedGem:
118
122
  Performance/Casecmp:
119
123
  Enabled: false
120
124
 
125
+ # This comes with changing the ruby target to 2.3+
126
+ Style/FrozenStringLiteralComment:
127
+ Enabled: false
128
+
121
129
  # maintain the previous array behavior in previous cookstyle releases
122
130
  Style/PercentLiteralDelimiters:
123
131
  PreferredDelimiters:
@@ -143,3 +151,82 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
143
151
  Layout/EndOfLine:
144
152
  Enabled: true
145
153
  EnforcedStyle: lf
154
+
155
+ # guardclause sacrifices ease of readability for consistency at times
156
+ Style/GuardClause:
157
+ Enabled: false
158
+
159
+ # Users really shouldn't have a gem, but if they do they should do it securely
160
+ Bundler/InsecureProtocolSource:
161
+ Enabled: true
162
+
163
+ # It's easier to read a simple .each and they're faster
164
+ Lint/RedundantWithIndex:
165
+ Enabled: true
166
+
167
+ # Catches when a user single quotes a string with interpolation
168
+ Lint/InterpolationCheck:
169
+ Enabled: true
170
+
171
+ # Bad: `bar = [foo.min, foo.max]`. Good: bar = foo.minmax
172
+ Style/MinMax:
173
+ Enabled: true
174
+
175
+ # Avoid ruby deprecation warnings
176
+ Lint/UriRegexp:
177
+ Enabled: true
178
+
179
+ Performance/UriDefaultParser:
180
+ Enabled: true
181
+
182
+ # :true or :false seems like a horrible idea
183
+ Lint/BooleanSymbol:
184
+ Enabled: true
185
+
186
+ # this avoids very verbose code for no reason
187
+ Style/RedundantConditional:
188
+ Enabled: true
189
+
190
+ # catches people writing a regex check wrong
191
+ Lint/RegexpInCondition:
192
+ Enabled: true
193
+
194
+ # Avoids pointless / complex code
195
+ Lint/RedundantWithObject:
196
+ Enabled: true
197
+
198
+ # avoid requiring things that come for free
199
+ Lint/UnneededRequireStatement:
200
+ Enabled: true
201
+
202
+ # Avoid poorly formatted methods
203
+ Style/TrailingBodyOnMethodDefinition:
204
+ Enabled: true
205
+
206
+ # Avoid weird empty lines in an argument
207
+ Layout/EmptyLinesAroundArguments:
208
+ Enabled: true
209
+
210
+ # don't shadow arguments
211
+ Lint/ShadowedArgument:
212
+ Enabled: true
213
+
214
+ # find orphaned empty comments
215
+ Layout/EmptyComment:
216
+ Enabled: true
217
+
218
+ # warn on deprecated functionality
219
+ Lint/BigDecimalNew:
220
+ Enabled: true
221
+
222
+ # remove bogus rubocop comments. We already enabled Disable directives
223
+ Lint/UnneededCopEnableDirective:
224
+ Enabled: true
225
+
226
+ # get people on a much simpler ruby 2.4 way of doing things
227
+ Style/UnpackFirst:
228
+ Enabled: true
229
+
230
+ # simplify how you get the min or max of an array
231
+ Performance/UnneededSort:
232
+ Enable: true
@@ -1,6 +1,6 @@
1
1
  Layout/AccessModifierIndentation:
2
2
  Enabled: true
3
- Style/AccessorMethodName:
3
+ Naming/AccessorMethodName:
4
4
  Enabled: true
5
5
  Style/Alias:
6
6
  Enabled: true
@@ -16,7 +16,7 @@ Style/ArrayJoin:
16
16
  Enabled: true
17
17
  Style/AsciiComments:
18
18
  Enabled: true
19
- Style/AsciiIdentifiers:
19
+ Naming/AsciiIdentifiers:
20
20
  Enabled: true
21
21
  Style/Attr:
22
22
  Enabled: true
@@ -38,7 +38,7 @@ Layout/CaseIndentation:
38
38
  Enabled: true
39
39
  Style/CharacterLiteral:
40
40
  Enabled: true
41
- Style/ClassAndModuleCamelCase:
41
+ Naming/ClassAndModuleCamelCase:
42
42
  Enabled: true
43
43
  Style/ClassAndModuleChildren:
44
44
  Enabled: true
@@ -60,7 +60,7 @@ Layout/CommentIndentation:
60
60
  Enabled: true
61
61
  Style/ConditionalAssignment:
62
62
  Enabled: true
63
- Style/ConstantName:
63
+ Naming/ConstantName:
64
64
  Enabled: true
65
65
  Style/DefWithParentheses:
66
66
  Enabled: true
@@ -98,7 +98,7 @@ Style/EvenOdd:
98
98
  Enabled: true
99
99
  Layout/ExtraSpacing:
100
100
  Enabled: true
101
- Style/FileName:
101
+ Naming/FileName:
102
102
  Enabled: true
103
103
  Style/FrozenStringLiteralComment:
104
104
  Enabled: true
@@ -150,7 +150,7 @@ Style/MethodCallParentheses:
150
150
  Enabled: true
151
151
  Style/MethodDefParentheses:
152
152
  Enabled: true
153
- Style/MethodName:
153
+ Naming/MethodName:
154
154
  Enabled: true
155
155
  Style/ModuleFunction:
156
156
  Enabled: true
@@ -190,7 +190,7 @@ Style/NumericLiterals:
190
190
  Enabled: true
191
191
  Style/OneLineConditional:
192
192
  Enabled: true
193
- Style/OpMethod:
193
+ Naming/OpMethod:
194
194
  Enabled: true
195
195
  Style/OptionalArguments:
196
196
  Enabled: true
@@ -204,7 +204,7 @@ Style/PercentQLiterals:
204
204
  Enabled: true
205
205
  Style/PerlBackrefs:
206
206
  Enabled: true
207
- Style/PredicateName:
207
+ Naming/PredicateName:
208
208
  Enabled: true
209
209
  Style/Proc:
210
210
  Enabled: true
@@ -268,8 +268,6 @@ Layout/SpaceAroundKeyword:
268
268
  Enabled: true
269
269
  Layout/SpaceAroundOperators:
270
270
  Enabled: true
271
- Layout/SpaceInsideBrackets:
272
- Enabled: true
273
271
  Layout/SpaceInsideHashLiteralBraces:
274
272
  Enabled: true
275
273
  Layout/SpaceInsideParens:
@@ -298,7 +296,9 @@ Layout/TrailingBlankLines:
298
296
  Enabled: true
299
297
  Style/TrailingCommaInArguments:
300
298
  Enabled: true
301
- Style/TrailingCommaInLiteral:
299
+ Style/TrailingCommaInHashLiteral:
300
+ Enabled: true
301
+ Style/TrailingCommaInArrayLiteral:
302
302
  Enabled: true
303
303
  Layout/TrailingWhitespace:
304
304
  Enabled: true
@@ -316,7 +316,7 @@ Style/TrailingUnderscoreVariable:
316
316
  Enabled: true
317
317
  Style/VariableInterpolation:
318
318
  Enabled: true
319
- Style/VariableName:
319
+ Naming/VariableName:
320
320
  Enabled: true
321
321
  Style/WhenThen:
322
322
  Enabled: true
@@ -342,15 +342,15 @@ Lint/AmbiguousRegexpLiteral:
342
342
  Enabled: true
343
343
  Lint/AssignmentInCondition:
344
344
  Enabled: true
345
- Lint/BlockAlignment:
345
+ Layout/BlockAlignment:
346
346
  Enabled: true
347
347
  Lint/CircularArgumentReference:
348
348
  Enabled: true
349
- Lint/ConditionPosition:
349
+ Layout/ConditionPosition:
350
350
  Enabled: true
351
351
  Lint/Debugger:
352
352
  Enabled: true
353
- Lint/DefEndAlignment:
353
+ Layout/DefEndAlignment:
354
354
  Enabled: true
355
355
  Lint/DeprecatedClassMethods:
356
356
  Enabled: true
@@ -366,7 +366,7 @@ Lint/EmptyEnsure:
366
366
  Enabled: true
367
367
  Lint/EmptyInterpolation:
368
368
  Enabled: true
369
- Lint/EndAlignment:
369
+ Layout/EndAlignment:
370
370
  Enabled: true
371
371
  Lint/EndInMethod:
372
372
  Enabled: true
@@ -384,9 +384,7 @@ Lint/ImplicitStringConcatenation:
384
384
  Enabled: true
385
385
  Lint/IneffectiveAccessModifier:
386
386
  Enabled: true
387
- Lint/InvalidCharacterLiteral:
388
- Enabled: true
389
- Lint/LiteralInCondition:
387
+ Lint/LiteralAsCondition:
390
388
  Enabled: true
391
389
  Lint/LiteralInInterpolation:
392
390
  Enabled: true
@@ -412,7 +410,7 @@ Lint/StringConversionInInterpolation:
412
410
  Enabled: true
413
411
  Lint/UnderscorePrefixedVariableName:
414
412
  Enabled: true
415
- Lint/UnneededDisable:
413
+ Lint/UnneededCopDisableDirective:
416
414
  Enabled: true
417
415
  Lint/UnusedBlockArgument:
418
416
  Enabled: true
@@ -449,8 +447,6 @@ Performance/FixedSize:
449
447
  Performance/FlatMap:
450
448
  Enabled: true
451
449
  EnabledForFlattenWithoutParams: false
452
- Performance/HashEachMethods:
453
- Enabled: true
454
450
  Performance/LstripRstrip:
455
451
  Enabled: true
456
452
  Performance/RangeInclude:
@@ -1,8 +1,16 @@
1
1
  ---
2
2
  Bundler/DuplicatedGem:
3
3
  Enabled: false
4
+ Bundler/InsecureProtocolSource:
5
+ Enabled: false
4
6
  Bundler/OrderedGems:
5
7
  Enabled: false
8
+ Gemspec/DuplicatedAssignment:
9
+ Enabled: false
10
+ Gemspec/OrderedDependencies:
11
+ Enabled: false
12
+ Gemspec/RequiredRubyVersion:
13
+ Enabled: false
6
14
  Layout/AccessModifierIndentation:
7
15
  Enabled: false
8
16
  Layout/AlignArray:
@@ -11,24 +19,36 @@ Layout/AlignHash:
11
19
  Enabled: false
12
20
  Layout/AlignParameters:
13
21
  Enabled: false
22
+ Layout/BlockAlignment:
23
+ Enabled: false
14
24
  Layout/BlockEndNewline:
15
25
  Enabled: false
16
26
  Layout/CaseIndentation:
17
27
  Enabled: false
28
+ Layout/ClassStructure:
29
+ Enabled: false
18
30
  Layout/ClosingParenthesisIndentation:
19
31
  Enabled: false
20
32
  Layout/CommentIndentation:
21
33
  Enabled: false
34
+ Layout/ConditionPosition:
35
+ Enabled: false
36
+ Layout/DefEndAlignment:
37
+ Enabled: false
22
38
  Layout/DotPosition:
23
39
  Enabled: false
24
40
  Layout/ElseAlignment:
25
41
  Enabled: false
42
+ Layout/EmptyComment:
43
+ Enabled: false
26
44
  Layout/EmptyLineAfterMagicComment:
27
45
  Enabled: false
28
46
  Layout/EmptyLineBetweenDefs:
29
47
  Enabled: false
30
48
  Layout/EmptyLinesAroundAccessModifier:
31
49
  Enabled: false
50
+ Layout/EmptyLinesAroundArguments:
51
+ Enabled: false
32
52
  Layout/EmptyLinesAroundBeginBody:
33
53
  Enabled: false
34
54
  Layout/EmptyLinesAroundBlockBody:
@@ -43,6 +63,8 @@ Layout/EmptyLinesAroundModuleBody:
43
63
  Enabled: false
44
64
  Layout/EmptyLines:
45
65
  Enabled: false
66
+ Layout/EndAlignment:
67
+ Enabled: false
46
68
  Layout/EndOfLine:
47
69
  Enabled: false
48
70
  Layout/ExtraSpacing:
@@ -123,9 +145,9 @@ Layout/SpaceInLambdaLiteral:
123
145
  Enabled: false
124
146
  Layout/SpaceInsideArrayPercentLiteral:
125
147
  Enabled: false
126
- Layout/SpaceInsideBlockBraces:
148
+ Layout/SpaceInsideArrayLiteralBrackets:
127
149
  Enabled: false
128
- Layout/SpaceInsideBrackets:
150
+ Layout/SpaceInsideBlockBraces:
129
151
  Enabled: false
130
152
  Layout/SpaceInsideHashLiteralBraces:
131
153
  Enabled: false
@@ -135,6 +157,8 @@ Layout/SpaceInsidePercentLiteralDelimiters:
135
157
  Enabled: false
136
158
  Layout/SpaceInsideRangeLiteral:
137
159
  Enabled: false
160
+ Layout/SpaceInsideReferenceBrackets:
161
+ Enabled: false
138
162
  Layout/SpaceInsideStringInterpolation:
139
163
  Enabled: false
140
164
  Layout/Tab:
@@ -151,16 +175,14 @@ Lint/AmbiguousRegexpLiteral:
151
175
  Enabled: false
152
176
  Lint/AssignmentInCondition:
153
177
  Enabled: false
154
- Lint/BlockAlignment:
178
+ Lint/BigDecimalNew:
155
179
  Enabled: false
156
- Lint/CircularArgumentReference:
180
+ Lint/BooleanSymbol:
157
181
  Enabled: false
158
- Lint/ConditionPosition:
182
+ Lint/CircularArgumentReference:
159
183
  Enabled: false
160
184
  Lint/Debugger:
161
185
  Enabled: false
162
- Lint/DefEndAlignment:
163
- Enabled: false
164
186
  Lint/DeprecatedClassMethods:
165
187
  Enabled: false
166
188
  Lint/DuplicateCaseCondition:
@@ -181,8 +203,6 @@ Lint/EmptyInterpolation:
181
203
  Enabled: false
182
204
  Lint/EmptyWhen:
183
205
  Enabled: false
184
- Lint/EndAlignment:
185
- Enabled: false
186
206
  Lint/EndInMethod:
187
207
  Enabled: false
188
208
  Lint/EnsureReturn:
@@ -199,22 +219,30 @@ Lint/InheritException:
199
219
  Enabled: false
200
220
  Lint/IneffectiveAccessModifier:
201
221
  Enabled: false
202
- Lint/InvalidCharacterLiteral:
222
+ Lint/InterpolationCheck:
203
223
  Enabled: false
204
- Lint/LiteralInCondition:
224
+ Lint/LiteralAsCondition:
205
225
  Enabled: false
206
226
  Lint/LiteralInInterpolation:
207
227
  Enabled: false
208
228
  Lint/Loop:
209
229
  Enabled: false
230
+ Lint/MissingCopEnableDirective:
231
+ Enabled: false
210
232
  Lint/MultipleCompare:
211
233
  Enabled: false
212
234
  Lint/NestedMethodDefinition:
213
235
  Enabled: false
236
+ Lint/NestedPercentLiteral:
237
+ Enabled: false
214
238
  Lint/NextWithoutAccumulator:
215
239
  Enabled: false
216
240
  Lint/NonLocalExitFromIterator:
217
241
  Enabled: false
242
+ Lint/NumberConversion:
243
+ Enabled: false
244
+ Lint/OrderedMagicComments:
245
+ Enabled: false
218
246
  Lint/ParenthesesAsGroupedExpression:
219
247
  Enabled: false
220
248
  Lint/PercentStringArray:
@@ -223,27 +251,45 @@ Lint/PercentSymbolArray:
223
251
  Enabled: false
224
252
  Lint/RandOne:
225
253
  Enabled: false
254
+ Lint/RedundantWithIndex:
255
+ Enabled: false
256
+ Lint/RedundantWithObject:
257
+ Enabled: false
258
+ Lint/RegexpAsCondition:
259
+ Enabled: false
226
260
  Lint/RequireParentheses:
227
261
  Enabled: false
228
262
  Lint/RescueException:
229
263
  Enabled: false
230
264
  Lint/RescueType:
231
265
  Enabled: false
266
+ Lint/ReturnInVoidContext:
267
+ Enabled: false
268
+ Lint/SafeNavigationConsistency:
269
+ Enabled: false
232
270
  Lint/SafeNavigationChain:
233
271
  Enabled: false
234
272
  Lint/ScriptPermission:
235
273
  Enabled: false
274
+ Lint/ShadowedArgument:
275
+ Enabled: false
236
276
  Lint/ShadowedException:
237
277
  Enabled: false
238
278
  Lint/ShadowingOuterLocalVariable:
239
279
  Enabled: false
240
280
  Lint/StringConversionInInterpolation:
241
281
  Enabled: false
282
+ Lint/Syntax:
283
+ Enabled: false
242
284
  Lint/UnderscorePrefixedVariableName:
243
285
  Enabled: false
244
286
  Lint/UnifiedInteger:
245
287
  Enabled: false
246
- Lint/UnneededDisable:
288
+ Lint/UnneededCopDisableDirective:
289
+ Enabled: false
290
+ Lint/UnneededCopEnableDirective:
291
+ Enabled: false
292
+ Lint/UnneededRequireStatement:
247
293
  Enabled: false
248
294
  Lint/UnneededSplatExpansion:
249
295
  Enabled: false
@@ -253,6 +299,10 @@ Lint/UnusedBlockArgument:
253
299
  Enabled: false
254
300
  Lint/UnusedMethodArgument:
255
301
  Enabled: false
302
+ Lint/UriEscapeUnescape:
303
+ Enabled: false
304
+ Lint/UriRegexp:
305
+ Enabled: false
256
306
  Lint/UselessAccessModifier:
257
307
  Enabled: false
258
308
  Lint/UselessAssignment:
@@ -285,6 +335,36 @@ Metrics/ParameterLists:
285
335
  Enabled: false
286
336
  Metrics/PerceivedComplexity:
287
337
  Enabled: false
338
+ Naming/AccessorMethodName:
339
+ Enabled: false
340
+ Naming/AsciiIdentifiers:
341
+ Enabled: false
342
+ Naming/ClassAndModuleCamelCase:
343
+ Enabled: false
344
+ Naming/ConstantName:
345
+ Enabled: false
346
+ Naming/FileName:
347
+ Enabled: false
348
+ Naming/HeredocDelimiterCase:
349
+ Enabled: false
350
+ Naming/HeredocDelimiterNaming:
351
+ Enabled: false
352
+ Naming/MemoizedInstanceVariableName:
353
+ Enabled: false
354
+ Naming/MethodName:
355
+ Enabled: false
356
+ Naming/BinaryOperatorParameterName:
357
+ Enabled: false
358
+ Naming/PredicateName:
359
+ Enabled: false
360
+ Naming/UncommunicativeBlockParamName:
361
+ Enabled: false
362
+ Naming/UncommunicativeMethodParamName:
363
+ Enabled: false
364
+ Naming/VariableName:
365
+ Enabled: false
366
+ Naming/VariableNumber:
367
+ Enabled: false
288
368
  Performance/Caller:
289
369
  Enabled: false
290
370
  Performance/CaseWhenSplat:
@@ -303,8 +383,6 @@ Performance/FixedSize:
303
383
  Enabled: false
304
384
  Performance/FlatMap:
305
385
  Enabled: false
306
- Performance/HashEachMethods:
307
- Enabled: false
308
386
  Performance/LstripRstrip:
309
387
  Enabled: false
310
388
  Performance/RangeInclude:
@@ -333,7 +411,11 @@ Performance/StringReplacement:
333
411
  Enabled: false
334
412
  Performance/TimesMap:
335
413
  Enabled: false
336
- Style/AccessorMethodName:
414
+ Performance/UnfreezeString:
415
+ Enabled: false
416
+ Performance/UnneededSort:
417
+ Enabled: false
418
+ Performance/UriDefaultParser:
337
419
  Enabled: false
338
420
  Style/Alias:
339
421
  Enabled: false
@@ -343,8 +425,6 @@ Style/ArrayJoin:
343
425
  Enabled: false
344
426
  Style/AsciiComments:
345
427
  Enabled: false
346
- Style/AsciiIdentifiers:
347
- Enabled: false
348
428
  Style/Attr:
349
429
  Enabled: false
350
430
  Style/AutoResourceCleanup:
@@ -363,8 +443,6 @@ Style/CaseEquality:
363
443
  Enabled: false
364
444
  Style/CharacterLiteral:
365
445
  Enabled: false
366
- Style/ClassAndModuleCamelCase:
367
- Enabled: false
368
446
  Style/ClassAndModuleChildren:
369
447
  Enabled: false
370
448
  Style/ClassCheck:
@@ -377,19 +455,23 @@ Style/CollectionMethods:
377
455
  Enabled: false
378
456
  Style/ColonMethodCall:
379
457
  Enabled: false
458
+ Style/ColonMethodDefinition:
459
+ Enabled: false
380
460
  Style/CommandLiteral:
381
461
  Enabled: false
382
462
  Style/CommentAnnotation:
383
463
  Enabled: false
384
- Style/ConditionalAssignment:
464
+ Style/CommentedKeyword:
385
465
  Enabled: false
386
- Style/ConstantName:
466
+ Style/ConditionalAssignment:
387
467
  Enabled: false
388
468
  Style/Copyright:
389
469
  Enabled: false
470
+ Style/DateTime:
471
+ Enabled: false
390
472
  Style/DefWithParentheses:
391
473
  Enabled: false
392
- Style/PreferredHashMethods:
474
+ Style/Dir:
393
475
  Enabled: false
394
476
  Style/DocumentationMethod:
395
477
  Enabled: false
@@ -401,10 +483,16 @@ Style/EachForSimpleLoop:
401
483
  Enabled: false
402
484
  Style/EachWithObject:
403
485
  Enabled: false
486
+ Style/EmptyBlockParameter:
487
+ Enabled: false
404
488
  Style/EmptyCaseCondition:
405
489
  Enabled: false
406
490
  Style/EmptyElse:
407
491
  Enabled: false
492
+ Style/EmptyLambdaParameter:
493
+ Enabled: false
494
+ Style/EmptyLineAfterGuardClause:
495
+ Enabled: false
408
496
  Style/EmptyLiteral:
409
497
  Enabled: false
410
498
  Style/EmptyMethod:
@@ -413,9 +501,11 @@ Style/Encoding:
413
501
  Enabled: false
414
502
  Style/EndBlock:
415
503
  Enabled: false
504
+ Style/EvalWithLocation:
505
+ Enabled: false
416
506
  Style/EvenOdd:
417
507
  Enabled: false
418
- Style/FileName:
508
+ Style/ExpandPathArguments:
419
509
  Enabled: false
420
510
  Style/FlipFlop:
421
511
  Enabled: false
@@ -465,14 +555,16 @@ Style/MethodCalledOnDoEndBlock:
465
555
  Enabled: false
466
556
  Style/MethodDefParentheses:
467
557
  Enabled: false
468
- Style/MethodName:
469
- Enabled: false
470
558
  Style/MethodMissing:
471
559
  Enabled: false
560
+ Style/MinMax:
561
+ Enabled: false
472
562
  Style/MissingElse:
473
563
  Enabled: false
474
564
  Style/MixinGrouping:
475
565
  Enabled: false
566
+ Style/MixinUsage:
567
+ Enabled: false
476
568
  Style/ModuleFunction:
477
569
  Enabled: false
478
570
  Style/MultilineBlockChain:
@@ -515,7 +607,7 @@ Style/NumericPredicate:
515
607
  Enabled: false
516
608
  Style/OneLineConditional:
517
609
  Enabled: false
518
- Style/OpMethod:
610
+ Style/OrAssignment:
519
611
  Enabled: false
520
612
  Style/OptionHash:
521
613
  Enabled: false
@@ -531,12 +623,14 @@ Style/PercentQLiterals:
531
623
  Enabled: false
532
624
  Style/PerlBackrefs:
533
625
  Enabled: false
534
- Style/PredicateName:
626
+ Style/PreferredHashMethods:
535
627
  Enabled: false
536
628
  Style/Proc:
537
629
  Enabled: false
538
630
  Style/RaiseArgs:
539
631
  Enabled: false
632
+ Style/RandomWithOffset:
633
+ Enabled: false
540
634
  Style/RedundantBegin:
541
635
  Enabled: false
542
636
  Style/RedundantException:
@@ -549,10 +643,16 @@ Style/RedundantReturn:
549
643
  Enabled: false
550
644
  Style/RedundantSelf:
551
645
  Enabled: false
646
+ Style/RedundantConditional:
647
+ Enabled: false
552
648
  Style/RegexpLiteral:
553
649
  Enabled: false
554
650
  Style/RescueModifier:
555
651
  Enabled: false
652
+ Style/RescueStandardError:
653
+ Enabled: false
654
+ Style/ReturnNil:
655
+ Enabled: false
556
656
  Style/SafeNavigation:
557
657
  Enabled: false
558
658
  Style/SelfAssignment:
@@ -571,6 +671,10 @@ Style/SpecialGlobalVars:
571
671
  Enabled: false
572
672
  Style/StabbyLambdaParentheses:
573
673
  Enabled: false
674
+ Style/StderrPuts:
675
+ Enabled: false
676
+ Style/StringHashKeys:
677
+ Enabled: false
574
678
  Style/StringLiterals:
575
679
  Enabled: false
576
680
  Style/StringLiteralsInInterpolation:
@@ -587,9 +691,19 @@ Style/SymbolProc:
587
691
  Enabled: false
588
692
  Style/TernaryParentheses:
589
693
  Enabled: false
694
+ Style/TrailingBodyOnClass:
695
+ Enabled: false
696
+ Style/TrailingBodyOnMethodDefinition:
697
+ Enabled: false
698
+ Style/TrailingBodyOnModule:
699
+ Enabled: false
590
700
  Style/TrailingCommaInArguments:
591
701
  Enabled: false
592
- Style/TrailingCommaInLiteral:
702
+ Style/TrailingCommaInArrayLiteral:
703
+ Enabled: false
704
+ Style/TrailingCommaInHashLiteral:
705
+ Enabled: false
706
+ Style/TrailingMethodEndStatement:
593
707
  Enabled: false
594
708
  Style/TrailingUnderscoreVariable:
595
709
  Enabled: false
@@ -603,11 +717,9 @@ Style/UnneededInterpolation:
603
717
  Enabled: false
604
718
  Style/UnneededPercentQ:
605
719
  Enabled: false
606
- Style/VariableInterpolation:
720
+ Style/UnpackFirst:
607
721
  Enabled: false
608
- Style/VariableName:
609
- Enabled: false
610
- Style/VariableNumber:
722
+ Style/VariableInterpolation:
611
723
  Enabled: false
612
724
  Style/WhenThen:
613
725
  Enabled: false
@@ -623,6 +735,8 @@ Style/ZeroLengthPredicate:
623
735
  Enabled: false
624
736
  Rails/ActionFilter:
625
737
  Enabled: false
738
+ Rails/ActiveRecordAliases:
739
+ Enabled: false
626
740
  Rails/ActiveSupportAliases:
627
741
  Enabled: false
628
742
  Rails/ApplicationJob:
@@ -631,6 +745,8 @@ Rails/ApplicationRecord:
631
745
  Enabled: false
632
746
  Rails/Blank:
633
747
  Enabled: false
748
+ Rails/CreateTableWithTimestamps:
749
+ Enabled: false
634
750
  Rails/Date:
635
751
  Enabled: false
636
752
  Rails/DynamicFindBy:
@@ -641,6 +757,8 @@ Rails/DelegateAllowBlank:
641
757
  Enabled: false
642
758
  Rails/EnumUniqueness:
643
759
  Enabled: false
760
+ Rails/EnvironmentComparison:
761
+ Enabled: false
644
762
  Rails/Exit:
645
763
  Enabled: false
646
764
  Rails/FilePath:
@@ -651,8 +769,16 @@ Rails/FindEach:
651
769
  Enabled: false
652
770
  Rails/HasAndBelongsToMany:
653
771
  Enabled: false
772
+ Rails/HasManyOrHasOneDependent:
773
+ Enabled: false
654
774
  Rails/HttpPositionalArguments:
655
775
  Enabled: false
776
+ Rails/HttpStatus:
777
+ Enabled: false
778
+ Rails/InverseOf:
779
+ Enabled: false
780
+ Rails/LexicallyScopedActionFilter:
781
+ Enabled: false
656
782
  Rails/NotNullColumn:
657
783
  Enabled: false
658
784
  Rails/OutputSafety:
@@ -661,10 +787,14 @@ Rails/Output:
661
787
  Enabled: false
662
788
  Rails/PluralizationGrammar:
663
789
  Enabled: false
790
+ Rails/Presence:
791
+ Enabled: false
664
792
  Rails/Present:
665
793
  Enabled: false
666
794
  Rails/ReadWriteAttribute:
667
795
  Enabled: false
796
+ Rails/RedundantReceiverInWithOptions:
797
+ Enabled: false
668
798
  Rails/RequestReferer:
669
799
  Enabled: false
670
800
  Rails/ReversibleMigration:
@@ -683,6 +813,8 @@ Rails/TimeZone:
683
813
  Enabled: false
684
814
  Rails/UniqBeforePluck:
685
815
  Enabled: false
816
+ Rails/UnknownEnv:
817
+ Enabled: false
686
818
  Rails/Validation:
687
819
  Enabled: false
688
820
  Security/Eval:
@@ -691,5 +823,7 @@ Security/JSONLoad:
691
823
  Enabled: false
692
824
  Security/MarshalLoad:
693
825
  Enabled: false
826
+ Security/Open:
827
+ Enabled: false
694
828
  Security/YAMLLoad:
695
829
  Enabled: false