1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2016-12-15 16:54:50 +0100 using RuboCop version 0.46.0.
3
+ # on 2016-12-16 13:08:29 +0100 using RuboCop version 0.46.0.
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
@@ -36,6 +36,14 @@ Lint/AssignmentInCondition:
36
36
- ' lib/annotate/annotate_models.rb'
37
37
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
38
38
39
+ # Offense count: 1
40
+ # Cop supports --auto-correct.
41
+ # Configuration parameters: AlignWith, SupportedStyles.
42
+ # SupportedStyles: either, start_of_block, start_of_line
43
+ Lint/BlockAlignment :
44
+ Exclude :
45
+ - ' lib/annotate/annotate_models.rb'
46
+
39
47
# Offense count: 6
40
48
# Cop supports --auto-correct.
41
49
Lint/DeprecatedClassMethods :
@@ -70,11 +78,10 @@ Lint/InheritException:
70
78
Exclude :
71
79
- ' lib/annotate/annotate_models.rb'
72
80
73
- # Offense count: 5
81
+ # Offense count: 2
74
82
Lint/RescueException :
75
83
Exclude :
76
84
- ' Rakefile'
77
- - ' lib/annotate/annotate_models.rb'
78
85
79
86
# Offense count: 1
80
87
Lint/ShadowingOuterLocalVariable :
@@ -111,13 +118,13 @@ Metrics/BlockNesting:
111
118
Metrics/CyclomaticComplexity :
112
119
Max : 36
113
120
114
- # Offense count: 334
121
+ # Offense count: 339
115
122
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
116
123
# URISchemes: http, https
117
124
Metrics/LineLength :
118
125
Max : 543
119
126
120
- # Offense count: 24
127
+ # Offense count: 23
121
128
# Configuration parameters: CountComments.
122
129
Metrics/MethodLength :
123
130
Max : 70
@@ -131,7 +138,7 @@ Style/AccessorMethodName:
131
138
Exclude :
132
139
- ' lib/annotate.rb'
133
140
134
- # Offense count: 1
141
+ # Offense count: 3
135
142
# Cop supports --auto-correct.
136
143
Style/AlignArray :
137
144
Exclude :
@@ -145,17 +152,6 @@ Style/BarePercentLiterals:
145
152
Exclude :
146
153
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
147
154
148
- # Offense count: 1
149
- # Cop supports --auto-correct.
150
- # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
151
- # SupportedStyles: line_count_based, semantic, braces_for_chaining
152
- # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
153
- # FunctionalMethods: let, let!, subject, watch
154
- # IgnoredMethods: lambda, proc, it
155
- Style/BlockDelimiters :
156
- Exclude :
157
- - ' lib/annotate/annotate_models.rb'
158
-
159
155
# Offense count: 3
160
156
# Cop supports --auto-correct.
161
157
# Configuration parameters: EnforcedStyle, SupportedStyles.
@@ -171,21 +167,12 @@ Style/CaseEquality:
171
167
Exclude :
172
168
- ' lib/annotate/annotate_models.rb'
173
169
174
- # Offense count: 8
175
- # Cop supports --auto-correct.
176
- # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
177
- # SupportedStyles: case, end
178
- Style/CaseIndentation :
179
- Exclude :
180
- - ' lib/annotate/annotate_models.rb'
181
-
182
- # Offense count: 15
170
+ # Offense count: 14
183
171
# Configuration parameters: EnforcedStyle, SupportedStyles.
184
172
# SupportedStyles: nested, compact
185
173
Style/ClassAndModuleChildren :
186
174
Exclude :
187
175
- ' lib/annotate/active_record_patch.rb'
188
- - ' spec/annotate/annotate_models_spec.rb'
189
176
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
190
177
- ' spec/integration/rails_2.3_with_bundler/test/test_helper.rb'
191
178
- ' spec/integration/rails_3.2.2/test/test_helper.rb'
@@ -207,20 +194,11 @@ Style/ClassVars:
207
194
208
195
# Offense count: 1
209
196
# Cop supports --auto-correct.
210
- # Configuration parameters: Keywords.
211
- # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
212
- Style/CommentAnnotation :
213
- Exclude :
214
- - ' spec/annotate/annotate_models_spec.rb'
215
-
216
- # Offense count: 3
217
- # Cop supports --auto-correct.
218
197
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
219
198
# SupportedStyles: assign_to_condition, assign_inside_condition
220
199
Style/ConditionalAssignment :
221
200
Exclude :
222
201
- ' bin/annotate'
223
- - ' lib/annotate/annotate_models.rb'
224
202
225
203
# Offense count: 7
226
204
Style/Documentation :
@@ -234,14 +212,6 @@ Style/Documentation:
234
212
- ' lib/generators/annotate/install_generator.rb'
235
213
- ' lib/tasks/migrate.rake'
236
214
237
- # Offense count: 9
238
- # Cop supports --auto-correct.
239
- # Configuration parameters: EnforcedStyle, SupportedStyles.
240
- # SupportedStyles: leading, trailing
241
- Style/DotPosition :
242
- Exclude :
243
- - ' lib/annotate/annotate_models.rb'
244
-
245
215
# Offense count: 2
246
216
# Cop supports --auto-correct.
247
217
Style/EmptyLines :
@@ -265,7 +235,7 @@ Style/EmptyLinesAroundBlockBody:
265
235
- ' spec/integration/rails_4.1.1/db/schema.rb'
266
236
- ' spec/integration/rails_4.2.0/db/schema.rb'
267
237
268
- # Offense count: 25
238
+ # Offense count: 23
269
239
# Cop supports --auto-correct.
270
240
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
271
241
Style/ExtraSpacing :
@@ -307,27 +277,19 @@ Style/GuardClause:
307
277
- ' lib/tasks/migrate.rake'
308
278
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
309
279
310
- # Offense count: 58
280
+ # Offense count: 57
311
281
# Cop supports --auto-correct.
312
282
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
313
283
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
314
284
Style/HashSyntax :
315
285
Enabled : false
316
286
317
- # Offense count: 2
318
- # Cop supports --auto-correct.
319
- # Configuration parameters: MaxLineLength.
320
- Style/IfUnlessModifier :
321
- Exclude :
322
- - ' lib/annotate/annotate_models.rb'
323
-
324
- # Offense count: 6
287
+ # Offense count: 1
325
288
# Cop supports --auto-correct.
326
289
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
327
290
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
328
291
Style/IndentArray :
329
292
Exclude :
330
- - ' lib/annotate/annotate_models.rb'
331
293
- ' lib/annotate/annotate_routes.rb'
332
294
333
295
# Offense count: 6
@@ -355,14 +317,6 @@ Style/IndentationWidth:
355
317
- ' spec/integration/rails_4.2.0/app/models/sub1/sub2/sub3/event.rb'
356
318
- ' spec/integration/rails_4.2.0/app/models/task.rb'
357
319
358
- # Offense count: 1
359
- # Cop supports --auto-correct.
360
- # Configuration parameters: EnforcedStyle, SupportedStyles.
361
- # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
362
- Style/MethodDefParentheses :
363
- Exclude :
364
- - ' spec/annotate/annotate_models_spec.rb'
365
-
366
320
# Offense count: 1
367
321
Style/MethodMissing :
368
322
Exclude :
@@ -375,51 +329,28 @@ Style/MultilineBlockChain:
375
329
- ' lib/annotate/annotate_models.rb'
376
330
- ' spec/spec_helper.rb'
377
331
378
- # Offense count: 3
379
- # Cop supports --auto-correct.
380
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
381
- # SupportedStyles: aligned, indented, indented_relative_to_receiver
382
- Style/MultilineMethodCallIndentation :
383
- Exclude :
384
- - ' lib/annotate/annotate_models.rb'
385
-
386
- # Offense count: 7
332
+ # Offense count: 5
387
333
# Cop supports --auto-correct.
388
334
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
389
335
# SupportedStyles: aligned, indented
390
336
Style/MultilineOperationIndentation :
391
337
Exclude :
392
338
- ' lib/annotate/annotate_models.rb'
393
339
394
- # Offense count: 11
340
+ # Offense count: 3
395
341
# Cop supports --auto-correct.
396
342
Style/MutableConstant :
397
343
Exclude :
398
- - ' lib/annotate/annotate_models.rb'
399
344
- ' lib/annotate/annotate_routes.rb'
400
345
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
401
346
- ' spec/integration/rails_2.3_with_bundler/config/environment.rb'
402
347
403
- # Offense count: 1
404
- # Cop supports --auto-correct.
405
- Style/NegatedIf :
406
- Exclude :
407
- - ' lib/annotate/annotate_models.rb'
408
-
409
348
# Offense count: 1
410
349
# Cop supports --auto-correct.
411
350
Style/NestedParenthesizedCalls :
412
351
Exclude :
413
352
- ' bin/annotate'
414
353
415
- # Offense count: 1
416
- # Cop supports --auto-correct.
417
- # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
418
- # SupportedStyles: skip_modifier_ifs, always
419
- Style/Next :
420
- Exclude :
421
- - ' lib/annotate/annotate_models.rb'
422
-
423
354
# Offense count: 9
424
355
# Cop supports --auto-correct.
425
356
Style/NumericLiterals :
@@ -435,12 +366,6 @@ Style/NumericPredicate:
435
366
- ' lib/annotate.rb'
436
367
- ' lib/annotate/annotate_models.rb'
437
368
438
- # Offense count: 1
439
- # Cop supports --auto-correct.
440
- Style/ParallelAssignment :
441
- Exclude :
442
- - ' lib/annotate/annotate_models.rb'
443
-
444
369
# Offense count: 6
445
370
# Cop supports --auto-correct.
446
371
# Configuration parameters: PreferredDelimiters.
@@ -462,7 +387,7 @@ Style/RaiseArgs:
462
387
Exclude :
463
388
- ' lib/annotate/annotate_models.rb'
464
389
465
- # Offense count: 2
390
+ # Offense count: 1
466
391
# Cop supports --auto-correct.
467
392
Style/RedundantBegin :
468
393
Exclude :
@@ -474,19 +399,17 @@ Style/RedundantParentheses:
474
399
Exclude :
475
400
- ' lib/annotate/annotate_models.rb'
476
401
477
- # Offense count: 2
402
+ # Offense count: 1
478
403
# Cop supports --auto-correct.
479
404
# Configuration parameters: AllowMultipleReturnValues.
480
405
Style/RedundantReturn :
481
406
Exclude :
482
- - ' lib/annotate/annotate_models.rb'
483
407
- ' lib/annotate/annotate_routes.rb'
484
408
485
- # Offense count: 3
409
+ # Offense count: 2
486
410
# Cop supports --auto-correct.
487
411
Style/RedundantSelf :
488
412
Exclude :
489
- - ' lib/annotate/annotate_models.rb'
490
413
- ' lib/tasks/migrate.rake'
491
414
492
415
# Offense count: 12
@@ -514,13 +437,12 @@ Style/Semicolon:
514
437
- ' bin/annotate'
515
438
- ' spec/integration/rails_2.3_with_bundler/config/initializers/unified_initializer.rb'
516
439
517
- # Offense count: 13
440
+ # Offense count: 4
518
441
# Cop supports --auto-correct.
519
442
# Configuration parameters: EnforcedStyle, SupportedStyles.
520
443
# SupportedStyles: space, no_space
521
444
Style/SpaceAroundEqualsInParameterDefault :
522
445
Exclude :
523
- - ' lib/annotate/annotate_models.rb'
524
446
- ' lib/annotate/annotate_routes.rb'
525
447
- ' spec/integration/common_validation.rb'
526
448
@@ -538,7 +460,7 @@ Style/SpaceAroundKeyword:
538
460
- ' spec/integration/rails_4.2.0/Gemfile'
539
461
- ' spec/integration/standalone/Gemfile'
540
462
541
- # Offense count: 11
463
+ # Offense count: 6
542
464
# Cop supports --auto-correct.
543
465
# Configuration parameters: AllowForAlignment.
544
466
Style/SpaceAroundOperators :
@@ -547,7 +469,7 @@ Style/SpaceAroundOperators:
547
469
- ' lib/tasks/annotate_models.rake'
548
470
- ' lib/tasks/annotate_routes.rake'
549
471
550
- # Offense count: 6
472
+ # Offense count: 4
551
473
# Cop supports --auto-correct.
552
474
# Configuration parameters: EnforcedStyle, SupportedStyles.
553
475
# SupportedStyles: space, no_space
@@ -561,7 +483,7 @@ Style/SpaceBeforeComment:
561
483
Exclude :
562
484
- ' lib/annotate/annotate_models.rb'
563
485
564
- # Offense count: 9
486
+ # Offense count: 4
565
487
# Cop supports --auto-correct.
566
488
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
567
489
# SupportedStyles: space, no_space
@@ -597,7 +519,7 @@ Style/SpaceInsideStringInterpolation:
597
519
Exclude :
598
520
- ' lib/annotate/annotate_models.rb'
599
521
600
- # Offense count: 252
522
+ # Offense count: 222
601
523
# Cop supports --auto-correct.
602
524
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
603
525
# SupportedStyles: single_quotes, double_quotes
0 commit comments