rubocop-govuk 3.6.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7ae8ec9e6faad9588c63a5f5ba23d6f81e6a902e6f9051b5619f78cc346f9e8
4
- data.tar.gz: 3c0d65c5e8b25e0a6067ef266451080f777930a53b9f69f2085a44b400ae4665
3
+ metadata.gz: 9460cb1bd124d0db3bad61e69a4fca8fea76d1b58197766820aca957f4241854
4
+ data.tar.gz: 13319b8ceece3b49c2c4363f23c418cebd5f87db081fe1eecb63afb777c88194
5
5
  SHA512:
6
- metadata.gz: 8e20bb705063e2982eeab5943ec63597fe2093f87ca287238bcd1f1b7891e27dd26b025a95addc87a688655d5d745f916ba98e3c162affa2937af0da4beb3e30
7
- data.tar.gz: ec7b6f473f7dc57946f4cf3d50a952beabfc74a910ad9000f2c52724d9e0f3cce90344607577c2abb098d5c3f638921d17c68fd8714f8a108770a8c63ec715b6
6
+ metadata.gz: 981c47d318c535003c5e3b5206ca85ead3fda8895c770d4957cc4ee19f698d4bd04ad3483c17d064b079b87e9276c188ce06f478413dc2ed11ee8b2ec2b61c7c
7
+ data.tar.gz: 127e187db28bad0c6803c1fb8e8208277d55617698aef72befcddb4285449a62a65ee91836808b252f2a75c78fb40699d7b66ab0d4804cb523306d281866838a
@@ -1,3 +1,7 @@
1
+ # 3.7.0
2
+
3
+ * Turn a load of Cops back on (#52)
4
+
1
5
  # 3.6.0
2
6
 
3
7
  * Remove config that matches RuboCop defaults (#47)
@@ -1,9 +1,3 @@
1
- # TODO: unclear why this is here!
2
- # https://github.com/alphagov/govuk-lint/pull/38
3
- Layout/ClosingParenthesisIndentation:
4
- Description: 'Checks the indentation of hanging closing parentheses.'
5
- Enabled: false
6
-
7
1
  # Part of the orignal GDS styleguide
8
2
  # "Use empty lines between defs and to break up a method into logical paragraphs."
9
3
  # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#general
@@ -34,34 +28,6 @@ Layout/AccessModifierIndentation:
34
28
  Enabled: true
35
29
  EnforcedStyle: outdent
36
30
 
37
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
38
- # TODO: unclear why this is here!
39
- Layout/HashAlignment:
40
- Description: >-
41
- Align the elements of a hash literal if they span more than
42
- one line.
43
- Enabled: false
44
-
45
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
46
- # TODO: unclear why this is here!
47
- Layout/ParameterAlignment:
48
- Description: >-
49
- Align the parameters of a method call if they span more
50
- than one line.
51
- Enabled: false
52
-
53
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
54
- # TODO: unclear why this is here!
55
- Layout/CommentIndentation:
56
- Description: 'Indentation of comments.'
57
- Enabled: false
58
-
59
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
60
- # TODO: unclear why this is here!
61
- Layout/DotPosition:
62
- Description: 'Checks the position of the dot in multi-line method calls.'
63
- Enabled: false
64
-
65
31
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
66
32
  # TODO: unclear why this is here! Suggest enabling this with
67
33
  # "EnforcedStyle: consistent".
@@ -78,34 +44,8 @@ Layout/FirstHashElementIndentation:
78
44
  Description: 'Checks the indentation of the first key in a hash literal.'
79
45
  Enabled: false
80
46
 
81
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
82
- # TODO: unclear why this is here!
83
- Layout/LeadingCommentSpace:
84
- Description: 'Comments should start with a space.'
85
- Enabled: false
86
-
87
47
  # Introduced in: 9b2a744ab119d7797aaf423abcec914360f4208e
88
48
  # "More lenient on multi-line operations"
89
49
  # TODO: unclear why this is here!
90
50
  Layout/MultilineOperationIndentation:
91
51
  EnforcedStyle: indented
92
-
93
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
94
- # TODO: unclear why this is here!
95
- Layout/SpaceAroundKeyword:
96
- Description: 'Use spaces after if/elsif/unless/while/until/case/when.'
97
- Enabled: false
98
-
99
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
100
- # TODO: unclear why this is here!
101
- Layout/SpaceAfterNot:
102
- Description: Tracks redundant space after the ! operator.
103
- Enabled: false
104
-
105
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
106
- # TODO: unclear why this is here!
107
- Layout/SpaceBeforeComment:
108
- Description: >-
109
- Checks for missing space between code and a comment on the
110
- same line.
111
- Enabled: false
@@ -19,12 +19,6 @@ Rails/ActionFilter:
19
19
  Description: 'Enforces consistent use of action filter methods.'
20
20
  Enabled: false
21
21
 
22
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
23
- # TODO: unclear why this is here!
24
- Rails/Delegate:
25
- Description: 'Prefer delegate method for delegations.'
26
- Enabled: false
27
-
28
22
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
29
23
  # TODO: unclear why this is here!
30
24
  Rails/HasAndBelongsToMany:
@@ -37,24 +31,12 @@ Rails/Output:
37
31
  Description: 'Checks for calls to puts, print, etc.'
38
32
  Enabled: false
39
33
 
40
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
41
- # TODO: unclear why this is here!
42
- Rails/ReadWriteAttribute:
43
- Description: 'Checks for read_attribute(:attr) and write_attribute(:attr, val).'
44
- Enabled: false
45
-
46
34
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
47
35
  # TODO: unclear why this is here!
48
36
  Rails/ScopeArgs:
49
37
  Description: 'Checks the arguments of ActiveRecord scopes.'
50
38
  Enabled: false
51
39
 
52
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
53
- # TODO: unclear why this is here!
54
- Rails/Validation:
55
- Description: 'Use sexy validations.'
56
- Enabled: false
57
-
58
40
  # Introduced in: 91d7bf4895db12727582ad7bf47bdcb20ab178f7
59
41
  # TODO: unclear (in any real detail) why this is here!
60
42
  Rails/SkipsModelValidations:
@@ -86,36 +86,18 @@ Style/Alias:
86
86
  Description: 'Use alias_method instead of alias.'
87
87
  Enabled: false
88
88
 
89
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
90
- # TODO: unclear why this is here!
91
- Style/ArrayJoin:
92
- Description: 'Use Array#join instead of Array#*.'
93
- Enabled: false
94
-
95
89
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
96
90
  # TODO: unclear why this is here!
97
91
  Style/AsciiComments:
98
92
  Description: 'Use only ascii symbols in comments.'
99
93
  Enabled: false
100
94
 
101
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
102
- # TODO: unclear why this is here!
103
- Style/Attr:
104
- Description: 'Checks for uses of Module#attr.'
105
- Enabled: false
106
-
107
95
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
108
96
  # TODO: unclear why this is here!
109
97
  Style/BeginBlock:
110
98
  Description: 'Avoid the use of BEGIN blocks.'
111
99
  Enabled: false
112
100
 
113
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
114
- # TODO: unclear why this is here!
115
- Style/BlockComments:
116
- Description: 'Do not use block comments.'
117
- Enabled: false
118
-
119
101
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
120
102
  # TODO: unclear why this is here!
121
103
  Style/BlockDelimiters:
@@ -131,32 +113,12 @@ Style/CaseEquality:
131
113
  Description: 'Avoid explicit use of the case equality operator(===).'
132
114
  Enabled: false
133
115
 
134
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
135
- # TODO: unclear why this is here!
136
- Style/CharacterLiteral:
137
- Description: 'Checks for uses of character literals.'
138
- Enabled: false
139
-
140
116
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
141
117
  # TODO: unclear why this is here!
142
118
  Style/ClassAndModuleChildren:
143
119
  Description: 'Checks style of children classes and modules.'
144
120
  Enabled: false
145
121
 
146
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
147
- # TODO: unclear why this is here!
148
- Style/ColonMethodCall:
149
- Description: 'Do not use :: for method call.'
150
- Enabled: false
151
-
152
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
153
- # TODO: unclear why this is here!
154
- Style/CommentAnnotation:
155
- Description: >-
156
- Checks formatting of special comments
157
- (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
158
- Enabled: false
159
-
160
122
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
161
123
  # TODO: unclear why this is here!
162
124
  Style/PreferredHashMethods:
@@ -178,36 +140,12 @@ Style/DoubleNegation:
178
140
  Description: 'Checks for uses of double negation (!!).'
179
141
  Enabled: false
180
142
 
181
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
182
- # TODO: unclear why this is here!
183
- Style/EachWithObject:
184
- Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
185
- Enabled: false
186
-
187
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
188
- # TODO: unclear why this is here!
189
- Style/EmptyLiteral:
190
- Description: 'Prefer literals to Array.new/Hash.new/String.new.'
191
- Enabled: false
192
-
193
143
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
194
144
  # TODO: unclear why this is here!
195
145
  Style/Encoding:
196
146
  Description: 'Use UTF-8 as the source file encoding.'
197
147
  Enabled: false
198
148
 
199
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
200
- # TODO: unclear why this is here!
201
- Style/EndBlock:
202
- Description: 'Avoid the use of END blocks.'
203
- Enabled: false
204
-
205
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
206
- # TODO: unclear why this is here!
207
- Style/EvenOdd:
208
- Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
209
- Enabled: false
210
-
211
149
  # TODO: duplicate (other-excludes.yml), remove
212
150
  Style/FormatString:
213
151
  Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
@@ -247,14 +185,6 @@ Style/LambdaCall:
247
185
  Description: 'Use lambda.call(...) instead of lambda.(...).'
248
186
  Enabled: false
249
187
 
250
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
251
- # TODO: unclear why this is here!
252
- Style/LineEndConcatenation:
253
- Description: >-
254
- Use \ instead of + or << to concatenate two string literals at
255
- line end.
256
- Enabled: false
257
-
258
188
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
259
189
  # TODO: unclear why this is here!
260
190
  Style/MethodDefParentheses:
@@ -277,12 +207,6 @@ Style/NegatedIf:
277
207
  (or control flow or).
278
208
  Enabled: false
279
209
 
280
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
281
- # TODO: unclear why this is here!
282
- Style/NegatedWhile:
283
- Description: 'Favor until over while for negative conditions.'
284
- Enabled: false
285
-
286
210
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
287
211
  # TODO: unclear why this is here!
288
212
  Style/Next:
@@ -295,18 +219,6 @@ Style/NilComparison:
295
219
  Description: 'Prefer x.nil? to x == nil.'
296
220
  Enabled: false
297
221
 
298
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
299
- # TODO: unclear why this is here!
300
- Style/NonNilCheck:
301
- Description: 'Checks for redundant nil checks.'
302
- Enabled: false
303
-
304
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
305
- # TODO: unclear why this is here!
306
- Style/Not:
307
- Description: 'Use ! instead of not.'
308
- Enabled: false
309
-
310
222
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
311
223
  # TODO: unclear why this is here!
312
224
  Style/NumericLiterals:
@@ -315,24 +227,6 @@ Style/NumericLiterals:
315
227
  readability.
316
228
  Enabled: false
317
229
 
318
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
319
- # TODO: unclear why this is here!
320
- Style/PercentLiteralDelimiters:
321
- Description: 'Use `%`-literal delimiters consistently'
322
- Enabled: false
323
-
324
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
325
- # TODO: unclear why this is here!
326
- Style/PerlBackrefs:
327
- Description: 'Avoid Perl-style regex back references.'
328
- Enabled: false
329
-
330
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
331
- # TODO: unclear why this is here!
332
- Style/Proc:
333
- Description: 'Use proc instead of Proc.new.'
334
- Enabled: false
335
-
336
230
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
337
231
  # TODO: unclear why this is here! Suggest enabling with
338
232
  # "EnforcedStyle: compact"
@@ -340,24 +234,6 @@ Style/RaiseArgs:
340
234
  Description: 'Checks the arguments passed to raise/fail.'
341
235
  Enabled: false
342
236
 
343
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
344
- # TODO: unclear why this is here!
345
- Style/RedundantBegin:
346
- Description: "Don't use begin blocks when they are not needed."
347
- Enabled: false
348
-
349
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
350
- # TODO: unclear why this is here!
351
- Style/RedundantException:
352
- Description: "Checks for an obsolete RuntimeException argument in raise/fail."
353
- Enabled: false
354
-
355
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
356
- # TODO: unclear why this is here!
357
- Style/RedundantSelf:
358
- Description: "Don't use self where it's not needed."
359
- Enabled: false
360
-
361
237
  # Analog of: 736b3d295f88b9ba6676fc168b823535582388c2
362
238
  # "Disable opinionated cops"
363
239
  #
@@ -371,12 +247,6 @@ Style/RegexpLiteral:
371
247
  `MaxSlashes` '/' character.
372
248
  Enabled: false
373
249
 
374
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
375
- # TODO: unclear why this is here!
376
- Style/RescueModifier:
377
- Description: 'Avoid using rescue in its modifier form.'
378
- Enabled: false
379
-
380
250
  # Introduced in: 7aaebf4dbdf2a8d677b4000d3cd3512d4fb91e99
381
251
  # "This is a relatively new Ruby feature and is not mentioned in the Style
382
252
  # guide, so this commit disables it by default."
@@ -387,18 +257,6 @@ Style/SafeNavigation:
387
257
  existance of the object to safe navigation (`&.`).
388
258
  Enabled: false
389
259
 
390
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
391
- # TODO: unclear why this is here!
392
- Style/SelfAssignment:
393
- Description: 'Checks for places where self-assignment shorthand should have been used.'
394
- Enabled: false
395
-
396
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
397
- # TODO: unclear why this is here!
398
- Style/Semicolon:
399
- Description: "Don't use semicolons to terminate expressions."
400
- Enabled: false
401
-
402
260
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
403
261
  # TODO: unclear why this is here!
404
262
  Style/SignalException:
@@ -412,52 +270,12 @@ Style/SingleLineMethods:
412
270
  Description: 'Avoid single-line methods.'
413
271
  Enabled: false
414
272
 
415
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
416
- # TODO: unclear why this is here!
417
- Style/SpecialGlobalVars:
418
- Description: 'Avoid Perl-style global variables.'
419
- Enabled: false
420
-
421
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
422
- # TODO: unclear why this is here!
423
- Style/RedundantCapitalW:
424
- Description: 'Checks for %W when interpolation is not needed.'
425
- Enabled: false
426
-
427
273
  # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
428
274
  # TODO: unclear why this is here!
429
275
  Style/CommandLiteral:
430
276
  Description: 'Checks for %x when `` would do.'
431
277
  Enabled: false
432
278
 
433
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
434
- # TODO: unclear why this is here!
435
- Style/VariableInterpolation:
436
- Description: >-
437
- Don't interpolate global, instance and class variables
438
- directly in strings.
439
- Enabled: false
440
-
441
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
442
- # TODO: unclear why this is here!
443
- Style/WhenThen:
444
- Description: 'Use when x then ... for one-line cases.'
445
- Enabled: false
446
-
447
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
448
- # TODO: unclear why this is here!
449
- Style/WhileUntilDo:
450
- Description: 'Checks for redundant do after while or until.'
451
- Enabled: false
452
-
453
- # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
454
- # TODO: unclear why this is here!
455
- Style/WhileUntilModifier:
456
- Description: >-
457
- Favor modifier while/until usage when you have a
458
- single-line body.
459
- Enabled: false
460
-
461
279
  # Introduced in: b171d652d3e434b74ddc621df3b5be24c49bc7e8
462
280
  # This cop was added in preperation for a Ruby feature
463
281
  # that is no longer likely to become part of the language.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-govuk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-28 00:00:00.000000000 Z
11
+ date: 2020-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake