11# This configuration was generated by
22# `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.
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
@@ -36,6 +36,14 @@ Lint/AssignmentInCondition:
3636 - ' lib/annotate/annotate_models.rb'
3737 - ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
3838
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+
3947# Offense count: 6
4048# Cop supports --auto-correct.
4149Lint/DeprecatedClassMethods :
@@ -70,11 +78,10 @@ Lint/InheritException:
7078 Exclude :
7179 - ' lib/annotate/annotate_models.rb'
7280
73- # Offense count: 5
81+ # Offense count: 2
7482Lint/RescueException :
7583 Exclude :
7684 - ' Rakefile'
77- - ' lib/annotate/annotate_models.rb'
7885
7986# Offense count: 1
8087Lint/ShadowingOuterLocalVariable :
@@ -111,13 +118,13 @@ Metrics/BlockNesting:
111118Metrics/CyclomaticComplexity :
112119 Max : 36
113120
114- # Offense count: 334
121+ # Offense count: 339
115122# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
116123# URISchemes: http, https
117124Metrics/LineLength :
118125 Max : 543
119126
120- # Offense count: 24
127+ # Offense count: 23
121128# Configuration parameters: CountComments.
122129Metrics/MethodLength :
123130 Max : 70
@@ -131,7 +138,7 @@ Style/AccessorMethodName:
131138 Exclude :
132139 - ' lib/annotate.rb'
133140
134- # Offense count: 1
141+ # Offense count: 3
135142# Cop supports --auto-correct.
136143Style/AlignArray :
137144 Exclude :
@@ -145,17 +152,6 @@ Style/BarePercentLiterals:
145152 Exclude :
146153 - ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
147154
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-
159155# Offense count: 3
160156# Cop supports --auto-correct.
161157# Configuration parameters: EnforcedStyle, SupportedStyles.
@@ -171,21 +167,12 @@ Style/CaseEquality:
171167 Exclude :
172168 - ' lib/annotate/annotate_models.rb'
173169
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
183171# Configuration parameters: EnforcedStyle, SupportedStyles.
184172# SupportedStyles: nested, compact
185173Style/ClassAndModuleChildren :
186174 Exclude :
187175 - ' lib/annotate/active_record_patch.rb'
188- - ' spec/annotate/annotate_models_spec.rb'
189176 - ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
190177 - ' spec/integration/rails_2.3_with_bundler/test/test_helper.rb'
191178 - ' spec/integration/rails_3.2.2/test/test_helper.rb'
@@ -207,20 +194,11 @@ Style/ClassVars:
207194
208195# Offense count: 1
209196# 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.
218197# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
219198# SupportedStyles: assign_to_condition, assign_inside_condition
220199Style/ConditionalAssignment :
221200 Exclude :
222201 - ' bin/annotate'
223- - ' lib/annotate/annotate_models.rb'
224202
225203# Offense count: 7
226204Style/Documentation :
@@ -234,14 +212,6 @@ Style/Documentation:
234212 - ' lib/generators/annotate/install_generator.rb'
235213 - ' lib/tasks/migrate.rake'
236214
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-
245215# Offense count: 2
246216# Cop supports --auto-correct.
247217Style/EmptyLines :
@@ -265,7 +235,7 @@ Style/EmptyLinesAroundBlockBody:
265235 - ' spec/integration/rails_4.1.1/db/schema.rb'
266236 - ' spec/integration/rails_4.2.0/db/schema.rb'
267237
268- # Offense count: 25
238+ # Offense count: 23
269239# Cop supports --auto-correct.
270240# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
271241Style/ExtraSpacing :
@@ -307,27 +277,19 @@ Style/GuardClause:
307277 - ' lib/tasks/migrate.rake'
308278 - ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
309279
310- # Offense count: 58
280+ # Offense count: 57
311281# Cop supports --auto-correct.
312282# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
313283# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
314284Style/HashSyntax :
315285 Enabled : false
316286
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
325288# Cop supports --auto-correct.
326289# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
327290# SupportedStyles: special_inside_parentheses, consistent, align_brackets
328291Style/IndentArray :
329292 Exclude :
330- - ' lib/annotate/annotate_models.rb'
331293 - ' lib/annotate/annotate_routes.rb'
332294
333295# Offense count: 6
@@ -355,14 +317,6 @@ Style/IndentationWidth:
355317 - ' spec/integration/rails_4.2.0/app/models/sub1/sub2/sub3/event.rb'
356318 - ' spec/integration/rails_4.2.0/app/models/task.rb'
357319
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-
366320# Offense count: 1
367321Style/MethodMissing :
368322 Exclude :
@@ -375,51 +329,28 @@ Style/MultilineBlockChain:
375329 - ' lib/annotate/annotate_models.rb'
376330 - ' spec/spec_helper.rb'
377331
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
387333# Cop supports --auto-correct.
388334# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
389335# SupportedStyles: aligned, indented
390336Style/MultilineOperationIndentation :
391337 Exclude :
392338 - ' lib/annotate/annotate_models.rb'
393339
394- # Offense count: 11
340+ # Offense count: 3
395341# Cop supports --auto-correct.
396342Style/MutableConstant :
397343 Exclude :
398- - ' lib/annotate/annotate_models.rb'
399344 - ' lib/annotate/annotate_routes.rb'
400345 - ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
401346 - ' spec/integration/rails_2.3_with_bundler/config/environment.rb'
402347
403- # Offense count: 1
404- # Cop supports --auto-correct.
405- Style/NegatedIf :
406- Exclude :
407- - ' lib/annotate/annotate_models.rb'
408-
409348# Offense count: 1
410349# Cop supports --auto-correct.
411350Style/NestedParenthesizedCalls :
412351 Exclude :
413352 - ' bin/annotate'
414353
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-
423354# Offense count: 9
424355# Cop supports --auto-correct.
425356Style/NumericLiterals :
@@ -435,12 +366,6 @@ Style/NumericPredicate:
435366 - ' lib/annotate.rb'
436367 - ' lib/annotate/annotate_models.rb'
437368
438- # Offense count: 1
439- # Cop supports --auto-correct.
440- Style/ParallelAssignment :
441- Exclude :
442- - ' lib/annotate/annotate_models.rb'
443-
444369# Offense count: 6
445370# Cop supports --auto-correct.
446371# Configuration parameters: PreferredDelimiters.
@@ -462,7 +387,7 @@ Style/RaiseArgs:
462387 Exclude :
463388 - ' lib/annotate/annotate_models.rb'
464389
465- # Offense count: 2
390+ # Offense count: 1
466391# Cop supports --auto-correct.
467392Style/RedundantBegin :
468393 Exclude :
@@ -474,19 +399,17 @@ Style/RedundantParentheses:
474399 Exclude :
475400 - ' lib/annotate/annotate_models.rb'
476401
477- # Offense count: 2
402+ # Offense count: 1
478403# Cop supports --auto-correct.
479404# Configuration parameters: AllowMultipleReturnValues.
480405Style/RedundantReturn :
481406 Exclude :
482- - ' lib/annotate/annotate_models.rb'
483407 - ' lib/annotate/annotate_routes.rb'
484408
485- # Offense count: 3
409+ # Offense count: 2
486410# Cop supports --auto-correct.
487411Style/RedundantSelf :
488412 Exclude :
489- - ' lib/annotate/annotate_models.rb'
490413 - ' lib/tasks/migrate.rake'
491414
492415# Offense count: 12
@@ -514,13 +437,12 @@ Style/Semicolon:
514437 - ' bin/annotate'
515438 - ' spec/integration/rails_2.3_with_bundler/config/initializers/unified_initializer.rb'
516439
517- # Offense count: 13
440+ # Offense count: 4
518441# Cop supports --auto-correct.
519442# Configuration parameters: EnforcedStyle, SupportedStyles.
520443# SupportedStyles: space, no_space
521444Style/SpaceAroundEqualsInParameterDefault :
522445 Exclude :
523- - ' lib/annotate/annotate_models.rb'
524446 - ' lib/annotate/annotate_routes.rb'
525447 - ' spec/integration/common_validation.rb'
526448
@@ -538,7 +460,7 @@ Style/SpaceAroundKeyword:
538460 - ' spec/integration/rails_4.2.0/Gemfile'
539461 - ' spec/integration/standalone/Gemfile'
540462
541- # Offense count: 11
463+ # Offense count: 6
542464# Cop supports --auto-correct.
543465# Configuration parameters: AllowForAlignment.
544466Style/SpaceAroundOperators :
@@ -547,7 +469,7 @@ Style/SpaceAroundOperators:
547469 - ' lib/tasks/annotate_models.rake'
548470 - ' lib/tasks/annotate_routes.rake'
549471
550- # Offense count: 6
472+ # Offense count: 4
551473# Cop supports --auto-correct.
552474# Configuration parameters: EnforcedStyle, SupportedStyles.
553475# SupportedStyles: space, no_space
@@ -561,7 +483,7 @@ Style/SpaceBeforeComment:
561483 Exclude :
562484 - ' lib/annotate/annotate_models.rb'
563485
564- # Offense count: 9
486+ # Offense count: 4
565487# Cop supports --auto-correct.
566488# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
567489# SupportedStyles: space, no_space
@@ -597,7 +519,7 @@ Style/SpaceInsideStringInterpolation:
597519 Exclude :
598520 - ' lib/annotate/annotate_models.rb'
599521
600- # Offense count: 252
522+ # Offense count: 222
601523# Cop supports --auto-correct.
602524# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
603525# SupportedStyles: single_quotes, double_quotes
0 commit comments