cookstyle 3.0.2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/cookstyle.gemspec CHANGED
@@ -12,14 +12,13 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = 'RuboCop configuration for Chef cookbooks'
13
13
  spec.homepage = 'https://github.com/chef/cookstyle'
14
14
  spec.license = 'Apache-2.0'
15
- spec.required_ruby_version = '>= 2.1'
15
+ spec.required_ruby_version = '>= 2.4'
16
16
 
17
17
  # the gemspec and Gemfile are necessary for appbundling of the gem
18
- spec.files = %w{LICENSE cookstyle.gemspec Gemfile} + Dir.glob("{lib,bin,config}/**/*")
18
+ spec.files = %w(LICENSE cookstyle.gemspec Gemfile) + Dir.glob('{lib,bin,config}/**/*')
19
19
  spec.executables = %w(cookstyle)
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_development_dependency 'bundler', '~> 1.10'
23
22
  spec.add_development_dependency 'rake'
24
23
  spec.add_development_dependency 'rspec'
25
24
  spec.add_dependency('rubocop', Cookstyle::RUBOCOP_VERSION)
@@ -1,4 +1,4 @@
1
1
  module Cookstyle
2
- VERSION = '3.0.2'.freeze
3
- RUBOCOP_VERSION = '0.55.0'.freeze
2
+ VERSION = "4.0.0".freeze # rubocop: disable Style/StringLiterals
3
+ RUBOCOP_VERSION = '0.62.0'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,22 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-12-14 00:00:00.000000000 Z
12
+ date: 2019-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: bundler
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: '1.10'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "~>"
26
- - !ruby/object:Gem::Version
27
- version: '1.10'
28
14
  - !ruby/object:Gem::Dependency
29
15
  name: rake
30
16
  requirement: !ruby/object:Gem::Requirement
@@ -59,14 +45,14 @@ dependencies:
59
45
  requirements:
60
46
  - - '='
61
47
  - !ruby/object:Gem::Version
62
- version: 0.55.0
48
+ version: 0.62.0
63
49
  type: :runtime
64
50
  prerelease: false
65
51
  version_requirements: !ruby/object:Gem::Requirement
66
52
  requirements:
67
53
  - - '='
68
54
  - !ruby/object:Gem::Version
69
- version: 0.55.0
55
+ version: 0.62.0
70
56
  description:
71
57
  email:
72
58
  - thom@chef.io
@@ -80,7 +66,6 @@ files:
80
66
  - LICENSE
81
67
  - bin/cookstyle
82
68
  - config/cookstyle.yml
83
- - config/cookstyle_base.yml
84
69
  - config/default.yml
85
70
  - config/disable_all.yml
86
71
  - config/disabled.yml
@@ -101,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
86
  requirements:
102
87
  - - ">="
103
88
  - !ruby/object:Gem::Version
104
- version: '2.1'
89
+ version: '2.4'
105
90
  required_rubygems_version: !ruby/object:Gem::Requirement
106
91
  requirements:
107
92
  - - ">="
@@ -109,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
94
  version: '0'
110
95
  requirements: []
111
96
  rubyforge_project:
112
- rubygems_version: 2.7.7
97
+ rubygems_version: 2.7.6
113
98
  signing_key:
114
99
  specification_version: 4
115
100
  summary: RuboCop configuration for Chef cookbooks
@@ -1,473 +0,0 @@
1
- Layout/AccessModifierIndentation:
2
- Enabled: true
3
- Naming/AccessorMethodName:
4
- Enabled: true
5
- Style/Alias:
6
- Enabled: true
7
- Layout/AlignArray:
8
- Enabled: true
9
- Layout/AlignHash:
10
- Enabled: true
11
- Layout/AlignParameters:
12
- Enabled: true
13
- Style/AndOr:
14
- Enabled: true
15
- Style/ArrayJoin:
16
- Enabled: true
17
- Style/AsciiComments:
18
- Enabled: true
19
- Naming/AsciiIdentifiers:
20
- Enabled: true
21
- Style/Attr:
22
- Enabled: true
23
- Style/BeginBlock:
24
- Enabled: true
25
- Style/BarePercentLiterals:
26
- Enabled: true
27
- Style/BlockComments:
28
- Enabled: true
29
- Layout/BlockEndNewline:
30
- Enabled: true
31
- Style/BlockDelimiters:
32
- Enabled: true
33
- Style/BracesAroundHashParameters:
34
- Enabled: true
35
- Style/CaseEquality:
36
- Enabled: true
37
- Layout/CaseIndentation:
38
- Enabled: true
39
- Style/CharacterLiteral:
40
- Enabled: true
41
- Naming/ClassAndModuleCamelCase:
42
- Enabled: true
43
- Style/ClassAndModuleChildren:
44
- Enabled: true
45
- Style/ClassCheck:
46
- Enabled: true
47
- Style/ClassMethods:
48
- Enabled: true
49
- Style/ClassVars:
50
- Enabled: true
51
- Layout/ClosingParenthesisIndentation:
52
- Enabled: true
53
- Style/ColonMethodCall:
54
- Enabled: true
55
- Style/CommandLiteral:
56
- Enabled: true
57
- Style/CommentAnnotation:
58
- Enabled: true
59
- Layout/CommentIndentation:
60
- Enabled: true
61
- Style/ConditionalAssignment:
62
- Enabled: true
63
- Naming/ConstantName:
64
- Enabled: true
65
- Style/DefWithParentheses:
66
- Enabled: true
67
- Style/DeprecatedHashMethods:
68
- Enabled: true
69
- Style/Documentation:
70
- Enabled: true
71
- Layout/DotPosition:
72
- Enabled: true
73
- Style/EachWithObject:
74
- Enabled: true
75
- Layout/ElseAlignment:
76
- Enabled: true
77
- Style/EmptyElse:
78
- Enabled: true
79
- Layout/EmptyLineBetweenDefs:
80
- Enabled: true
81
- Layout/EmptyLines:
82
- Enabled: true
83
- Layout/EmptyLinesAroundAccessModifier:
84
- Enabled: true
85
- Layout/EmptyLinesAroundBlockBody:
86
- Enabled: true
87
- Layout/EmptyLinesAroundClassBody:
88
- Enabled: true
89
- Layout/EmptyLinesAroundModuleBody:
90
- Enabled: true
91
- Layout/EmptyLinesAroundMethodBody:
92
- Enabled: true
93
- Style/EmptyLiteral:
94
- Enabled: true
95
- Style/EndBlock:
96
- Enabled: true
97
- Style/EvenOdd:
98
- Enabled: true
99
- Layout/ExtraSpacing:
100
- Enabled: true
101
- Naming/FileName:
102
- Enabled: true
103
- Style/FrozenStringLiteralComment:
104
- Enabled: true
105
- Layout/InitialIndentation:
106
- Enabled: true
107
- Layout/FirstParameterIndentation:
108
- Enabled: true
109
- Style/FlipFlop:
110
- Enabled: true
111
- Style/For:
112
- Enabled: true
113
- Style/FormatString:
114
- Enabled: true
115
- Style/GlobalVars:
116
- Enabled: true
117
- Style/GuardClause:
118
- Enabled: true
119
- Style/HashSyntax:
120
- Enabled: true
121
- Style/IfInsideElse:
122
- Enabled: true
123
- Style/IfUnlessModifier:
124
- Enabled: true
125
- Style/IfWithSemicolon:
126
- Enabled: true
127
- Layout/IndentationConsistency:
128
- Enabled: true
129
- Layout/IndentationWidth:
130
- Enabled: true
131
- Style/IdenticalConditionalBranches:
132
- Enabled: true
133
- Layout/IndentArray:
134
- Enabled: true
135
- Layout/IndentAssignment:
136
- Enabled: true
137
- Layout/IndentHash:
138
- Enabled: true
139
- Style/InfiniteLoop:
140
- Enabled: true
141
- Style/Lambda:
142
- Enabled: true
143
- Style/LambdaCall:
144
- Enabled: true
145
- Layout/LeadingCommentSpace:
146
- Enabled: true
147
- Style/LineEndConcatenation:
148
- Enabled: true
149
- Style/MethodCallParentheses:
150
- Enabled: true
151
- Style/MethodDefParentheses:
152
- Enabled: true
153
- Naming/MethodName:
154
- Enabled: true
155
- Style/ModuleFunction:
156
- Enabled: true
157
- Style/MultilineBlockChain:
158
- Enabled: true
159
- Layout/MultilineBlockLayout:
160
- Enabled: true
161
- Style/MultilineIfThen:
162
- Enabled: true
163
- Layout/MultilineMethodCallIndentation:
164
- Enabled: true
165
- Layout/MultilineOperationIndentation:
166
- Enabled: true
167
- Style/MultilineTernaryOperator:
168
- Enabled: true
169
- Style/MutableConstant:
170
- Enabled: true
171
- Style/NegatedIf:
172
- Enabled: true
173
- Style/NegatedWhile:
174
- Enabled: true
175
- Style/NestedModifier:
176
- Enabled: true
177
- Style/NestedParenthesizedCalls:
178
- Enabled: true
179
- Style/NestedTernaryOperator:
180
- Enabled: true
181
- Style/Next:
182
- Enabled: true
183
- Style/NilComparison:
184
- Enabled: true
185
- Style/NonNilCheck:
186
- Enabled: true
187
- Style/Not:
188
- Enabled: true
189
- Style/NumericLiterals:
190
- Enabled: true
191
- Style/OneLineConditional:
192
- Enabled: true
193
- Naming/OpMethod:
194
- Enabled: true
195
- Style/OptionalArguments:
196
- Enabled: true
197
- Style/ParallelAssignment:
198
- Enabled: true
199
- Style/ParenthesesAroundCondition:
200
- Enabled: true
201
- Style/PercentLiteralDelimiters:
202
- Enabled: true
203
- Style/PercentQLiterals:
204
- Enabled: true
205
- Style/PerlBackrefs:
206
- Enabled: true
207
- Naming/PredicateName:
208
- Enabled: true
209
- Style/Proc:
210
- Enabled: true
211
- Style/RaiseArgs:
212
- Enabled: true
213
- Style/RedundantBegin:
214
- Enabled: true
215
- Style/RedundantException:
216
- Enabled: true
217
- Style/RedundantFreeze:
218
- Enabled: true
219
- Style/RedundantParentheses:
220
- Enabled: true
221
- Style/RedundantReturn:
222
- Enabled: true
223
- Style/RedundantSelf:
224
- Enabled: true
225
- Style/RegexpLiteral:
226
- Enabled: true
227
- Layout/RescueEnsureAlignment:
228
- Enabled: true
229
- Style/RescueModifier:
230
- Enabled: true
231
- Style/SelfAssignment:
232
- Enabled: true
233
- Style/Semicolon:
234
- Enabled: true
235
- Style/SignalException:
236
- Enabled: true
237
- Style/SingleLineBlockParams:
238
- Enabled: true
239
- Style/SingleLineMethods:
240
- Enabled: true
241
- Layout/SpaceBeforeFirstArg:
242
- Enabled: true
243
- Layout/SpaceAfterColon:
244
- Enabled: true
245
- Layout/SpaceAfterComma:
246
- Enabled: true
247
- Layout/SpaceAfterMethodName:
248
- Enabled: true
249
- Layout/SpaceAfterNot:
250
- Enabled: true
251
- Layout/SpaceAfterSemicolon:
252
- Enabled: true
253
- Layout/SpaceBeforeBlockBraces:
254
- Enabled: true
255
- Layout/SpaceBeforeComma:
256
- Enabled: true
257
- Layout/SpaceBeforeComment:
258
- Enabled: true
259
- Layout/SpaceBeforeSemicolon:
260
- Enabled: true
261
- Layout/SpaceInsideBlockBraces:
262
- Enabled: true
263
- Layout/SpaceAroundBlockParameters:
264
- Enabled: true
265
- Layout/SpaceAroundEqualsInParameterDefault:
266
- Enabled: true
267
- Layout/SpaceAroundKeyword:
268
- Enabled: true
269
- Layout/SpaceAroundOperators:
270
- Enabled: true
271
- Layout/SpaceInsideHashLiteralBraces:
272
- Enabled: true
273
- Layout/SpaceInsideParens:
274
- Enabled: true
275
- Layout/SpaceInsideRangeLiteral:
276
- Enabled: true
277
- Layout/SpaceInsideStringInterpolation:
278
- Enabled: true
279
- Style/SpecialGlobalVars:
280
- Enabled: true
281
- Style/StabbyLambdaParentheses:
282
- Enabled: true
283
- Style/StringLiterals:
284
- Enabled: true
285
- Style/StringLiteralsInInterpolation:
286
- Enabled: true
287
- Style/StructInheritance:
288
- Enabled: true
289
- Style/SymbolLiteral:
290
- Enabled: true
291
- Style/SymbolProc:
292
- Enabled: true
293
- Layout/Tab:
294
- Enabled: true
295
- Layout/TrailingBlankLines:
296
- Enabled: true
297
- Style/TrailingCommaInArguments:
298
- Enabled: true
299
- Style/TrailingCommaInHashLiteral:
300
- Enabled: true
301
- Style/TrailingCommaInArrayLiteral:
302
- Enabled: true
303
- Layout/TrailingWhitespace:
304
- Enabled: true
305
- Style/TrivialAccessors:
306
- Enabled: true
307
- Style/UnlessElse:
308
- Enabled: true
309
- Style/UnneededCapitalW:
310
- Enabled: true
311
- Style/UnneededInterpolation:
312
- Enabled: true
313
- Style/UnneededPercentQ:
314
- Enabled: true
315
- Style/TrailingUnderscoreVariable:
316
- Enabled: true
317
- Style/VariableInterpolation:
318
- Enabled: true
319
- Naming/VariableName:
320
- Enabled: true
321
- Style/WhenThen:
322
- Enabled: true
323
- Style/WhileUntilDo:
324
- Enabled: true
325
- Style/WhileUntilModifier:
326
- Enabled: true
327
- Style/WordArray:
328
- Enabled: true
329
- Style/ZeroLengthPredicate:
330
- Enabled: true
331
- Metrics/BlockNesting:
332
- Enabled: true
333
- Metrics/LineLength:
334
- Enabled: true
335
- Metrics/MethodLength:
336
- Enabled: true
337
- Metrics/ParameterLists:
338
- Enabled: true
339
- Lint/AmbiguousOperator:
340
- Enabled: true
341
- Lint/AmbiguousRegexpLiteral:
342
- Enabled: true
343
- Lint/AssignmentInCondition:
344
- Enabled: true
345
- Layout/BlockAlignment:
346
- Enabled: true
347
- Lint/CircularArgumentReference:
348
- Enabled: true
349
- Layout/ConditionPosition:
350
- Enabled: true
351
- Lint/Debugger:
352
- Enabled: true
353
- Layout/DefEndAlignment:
354
- Enabled: true
355
- Lint/DeprecatedClassMethods:
356
- Enabled: true
357
- Lint/DuplicateMethods:
358
- Enabled: true
359
- Lint/DuplicatedKey:
360
- Enabled: true
361
- Lint/EachWithObjectArgument:
362
- Enabled: true
363
- Lint/ElseLayout:
364
- Enabled: true
365
- Lint/EmptyEnsure:
366
- Enabled: true
367
- Lint/EmptyInterpolation:
368
- Enabled: true
369
- Layout/EndAlignment:
370
- Enabled: true
371
- Lint/EndInMethod:
372
- Enabled: true
373
- Lint/EnsureReturn:
374
- Enabled: true
375
- Security/Eval:
376
- Enabled: true
377
- Lint/FloatOutOfRange:
378
- Enabled: true
379
- Lint/FormatParameterMismatch:
380
- Enabled: true
381
- Lint/HandleExceptions:
382
- Enabled: true
383
- Lint/ImplicitStringConcatenation:
384
- Enabled: true
385
- Lint/IneffectiveAccessModifier:
386
- Enabled: true
387
- Lint/LiteralAsCondition:
388
- Enabled: true
389
- Lint/LiteralInInterpolation:
390
- Enabled: true
391
- Lint/Loop:
392
- Enabled: true
393
- Lint/NestedMethodDefinition:
394
- Enabled: true
395
- Lint/NextWithoutAccumulator:
396
- Enabled: true
397
- Lint/NonLocalExitFromIterator:
398
- Enabled: true
399
- Lint/ParenthesesAsGroupedExpression:
400
- Enabled: true
401
- Lint/RandOne:
402
- Enabled: true
403
- Lint/RequireParentheses:
404
- Enabled: true
405
- Lint/RescueException:
406
- Enabled: true
407
- Lint/ShadowingOuterLocalVariable:
408
- Enabled: true
409
- Lint/StringConversionInInterpolation:
410
- Enabled: true
411
- Lint/UnderscorePrefixedVariableName:
412
- Enabled: true
413
- Lint/UnneededCopDisableDirective:
414
- Enabled: true
415
- Lint/UnusedBlockArgument:
416
- Enabled: true
417
- Lint/UnusedMethodArgument:
418
- Enabled: true
419
- Lint/UnreachableCode:
420
- Enabled: true
421
- Lint/UselessAccessModifier:
422
- Enabled: true
423
- Lint/UselessAssignment:
424
- Enabled: true
425
- Lint/UselessComparison:
426
- Enabled: true
427
- Lint/UselessElseWithoutRescue:
428
- Enabled: true
429
- Lint/UselessSetterCall:
430
- Enabled: true
431
- Lint/Void:
432
- Enabled: true
433
- Performance/Casecmp:
434
- Enabled: true
435
- Performance/CaseWhenSplat:
436
- Enabled: true
437
- Performance/Count:
438
- Enabled: true
439
- Performance/Detect:
440
- Enabled: true
441
- Performance/DoubleStartEndWith:
442
- Enabled: true
443
- Performance/EndWith:
444
- Enabled: true
445
- Performance/FixedSize:
446
- Enabled: true
447
- Performance/FlatMap:
448
- Enabled: true
449
- EnabledForFlattenWithoutParams: false
450
- Performance/LstripRstrip:
451
- Enabled: true
452
- Performance/RangeInclude:
453
- Enabled: true
454
- Performance/RedundantBlockCall:
455
- Enabled: true
456
- Performance/RedundantMatch:
457
- Enabled: true
458
- Performance/RedundantMerge:
459
- Enabled: true
460
- Performance/RedundantSortBy:
461
- Enabled: true
462
- Performance/ReverseEach:
463
- Enabled: true
464
- Performance/Sample:
465
- Enabled: true
466
- Performance/Size:
467
- Enabled: true
468
- Performance/StartWith:
469
- Enabled: true
470
- Performance/StringReplacement:
471
- Enabled: true
472
- Performance/TimesMap:
473
- Enabled: true