rubycritic 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -585
  3. data/.rubocop_todo.yml +36 -0
  4. data/CHANGELOG.md +6 -0
  5. data/Gemfile +1 -1
  6. data/Rakefile +9 -9
  7. data/bin/rubycritic +2 -2
  8. data/features/command_line_interface/options.feature +1 -0
  9. data/features/step_definitions/rubycritic_steps.rb +1 -1
  10. data/features/step_definitions/sample_file_steps.rb +3 -3
  11. data/features/support/env.rb +6 -6
  12. data/lib/rubycritic.rb +1 -1
  13. data/lib/rubycritic/analysers/attributes.rb +6 -7
  14. data/lib/rubycritic/analysers/churn.rb +4 -6
  15. data/lib/rubycritic/analysers/complexity.rb +5 -7
  16. data/lib/rubycritic/analysers/helpers/ast_node.rb +4 -6
  17. data/lib/rubycritic/analysers/helpers/flay.rb +1 -3
  18. data/lib/rubycritic/analysers/helpers/flog.rb +5 -7
  19. data/lib/rubycritic/analysers/helpers/methods_counter.rb +1 -3
  20. data/lib/rubycritic/analysers/helpers/modules_locator.rb +3 -5
  21. data/lib/rubycritic/analysers/helpers/parser.rb +2 -2
  22. data/lib/rubycritic/analysers/helpers/reek.rb +1 -1
  23. data/lib/rubycritic/analysers/smells/flay.rb +14 -16
  24. data/lib/rubycritic/analysers/smells/flog.rb +15 -17
  25. data/lib/rubycritic/analysers/smells/reek.rb +11 -13
  26. data/lib/rubycritic/analysers_runner.rb +8 -10
  27. data/lib/rubycritic/browser.rb +17 -0
  28. data/lib/rubycritic/cli/application.rb +3 -3
  29. data/lib/rubycritic/cli/options.rb +29 -23
  30. data/lib/rubycritic/command_factory.rb +5 -5
  31. data/lib/rubycritic/commands/base.rb +2 -2
  32. data/lib/rubycritic/commands/ci.rb +4 -4
  33. data/lib/rubycritic/commands/default.rb +5 -5
  34. data/lib/rubycritic/commands/help.rb +1 -1
  35. data/lib/rubycritic/commands/status_reporter.rb +1 -1
  36. data/lib/rubycritic/commands/version.rb +2 -2
  37. data/lib/rubycritic/configuration.rb +4 -2
  38. data/lib/rubycritic/core/analysed_module.rb +15 -17
  39. data/lib/rubycritic/core/analysed_modules_collection.rb +3 -3
  40. data/lib/rubycritic/core/location.rb +4 -6
  41. data/lib/rubycritic/core/rating.rb +5 -7
  42. data/lib/rubycritic/core/smell.rb +11 -13
  43. data/lib/rubycritic/generators/console_report.rb +1 -1
  44. data/lib/rubycritic/generators/html/base.rb +9 -9
  45. data/lib/rubycritic/generators/html/code_file.rb +5 -7
  46. data/lib/rubycritic/generators/html/code_index.rb +3 -5
  47. data/lib/rubycritic/generators/html/line.rb +4 -6
  48. data/lib/rubycritic/generators/html/overview.rb +4 -6
  49. data/lib/rubycritic/generators/html/smells_index.rb +3 -5
  50. data/lib/rubycritic/generators/html/turbulence.rb +4 -6
  51. data/lib/rubycritic/generators/html/view_helpers.rb +4 -4
  52. data/lib/rubycritic/generators/html_report.rb +13 -9
  53. data/lib/rubycritic/generators/json/simple.rb +7 -9
  54. data/lib/rubycritic/generators/json_report.rb +1 -3
  55. data/lib/rubycritic/generators/text/list.rb +9 -9
  56. data/lib/rubycritic/reporter.rb +3 -5
  57. data/lib/rubycritic/revision_comparator.rb +6 -8
  58. data/lib/rubycritic/serializer.rb +2 -4
  59. data/lib/rubycritic/smells_status_setter.rb +2 -4
  60. data/lib/rubycritic/source_control_systems/base.rb +4 -6
  61. data/lib/rubycritic/source_control_systems/double.rb +1 -2
  62. data/lib/rubycritic/source_control_systems/git.rb +1 -3
  63. data/lib/rubycritic/source_control_systems/mercurial.rb +1 -3
  64. data/lib/rubycritic/source_locator.rb +5 -6
  65. data/lib/rubycritic/version.rb +1 -1
  66. data/rubycritic.gemspec +26 -25
  67. data/test/analysers_test_helper.rb +1 -1
  68. data/test/lib/rubycritic/analysers/churn_test.rb +9 -9
  69. data/test/lib/rubycritic/analysers/complexity_test.rb +5 -5
  70. data/test/lib/rubycritic/analysers/helpers/methods_counter_test.rb +12 -12
  71. data/test/lib/rubycritic/analysers/helpers/modules_locator_test.rb +25 -25
  72. data/test/lib/rubycritic/analysers/smells/flay_test.rb +12 -12
  73. data/test/lib/rubycritic/analysers/smells/flog_test.rb +7 -7
  74. data/test/lib/rubycritic/analysers/smells/reek_test.rb +8 -8
  75. data/test/lib/rubycritic/browser_test.rb +16 -0
  76. data/test/lib/rubycritic/commands/status_reporter_test.rb +31 -19
  77. data/test/lib/rubycritic/configuration_test.rb +10 -10
  78. data/test/lib/rubycritic/core/analysed_module_test.rb +37 -37
  79. data/test/lib/rubycritic/core/analysed_modules_collection_test.rb +32 -32
  80. data/test/lib/rubycritic/core/location_test.rb +16 -16
  81. data/test/lib/rubycritic/core/smell_test.rb +31 -31
  82. data/test/lib/rubycritic/core/smells_array_test.rb +18 -18
  83. data/test/lib/rubycritic/generators/console_report_test.rb +26 -26
  84. data/test/lib/rubycritic/generators/turbulence_test.rb +8 -8
  85. data/test/lib/rubycritic/generators/view_helpers_test.rb +36 -36
  86. data/test/lib/rubycritic/smells_status_setter_test.rb +7 -7
  87. data/test/lib/rubycritic/source_control_systems/base_test.rb +7 -7
  88. data/test/lib/rubycritic/source_control_systems/double_test.rb +3 -3
  89. data/test/lib/rubycritic/source_control_systems/git_test.rb +4 -4
  90. data/test/lib/rubycritic/source_control_systems/mercurial_test.rb +3 -3
  91. data/test/lib/rubycritic/source_locator_test.rb +30 -30
  92. data/test/lib/rubycritic/version_test.rb +4 -4
  93. data/test/test_helper.rb +4 -4
  94. metadata +30 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63f7b195fa4fd7ee15061bdfc41a49f7031e1c6a
4
- data.tar.gz: bc1b0a3185d7387223aea5467eb62ab1ba93ce9d
3
+ metadata.gz: 37aff404664ffd96d8f0d92284accb0053c9435a
4
+ data.tar.gz: 8df0a27080dae7d2bd13372397a1712555cb4a99
5
5
  SHA512:
6
- metadata.gz: a5d3d4dc64f42b8b28650dd3c182633aa7e9e3f153a48f2315ead8969c79d1c99775975d23ca9236ba1a423f4db0073af35b0e96413abf780e7e4c07c9f57b7c
7
- data.tar.gz: 27e3289f5e5629763e8bcbd505738f3c8cf5d6a9ffae6f8cff1e6cec2a92837170805f5eeee85abd3a491a16458ff0cab0e090cfe0d9d20ff81020d8648738fc
6
+ metadata.gz: d6ae9e3b022d2d015b8d6301c5b657bb9a1e94eb9bde5ecd076a2c2222b2bea3f9855e74d4eaa2af134063496419909856914fcae84724ed264916c2c28f83ba
7
+ data.tar.gz: 98cb0d06dc64fa6f29324524cca433101b5de689de99cb5698a96b98b17214a7b8299c2dc22a35cbd36a880d4e77b7e342ae5074fa65a6ce44a62e73f6aa662e
@@ -7,593 +7,11 @@ AllCops:
7
7
  Exclude:
8
8
  - 'test/samples/**/*'
9
9
  - 'tmp/**/*'
10
- # By default, the rails cops are not run. Override in project or home
11
- # directory .rubocop.yml files, or by giving the -R/--rails option.
12
- RunRailsCops: false
13
-
14
- Style/AccessorMethodName:
15
- Enabled: false
16
-
17
- # Indent private/protected/public as deep as method definitions
18
- Style/AccessModifierIndentation:
19
- EnforcedStyle: indent
20
- SupportedStyles:
21
- - outdent
22
- - indent
23
-
24
- # Align the elements of a hash literal if they span more than one line.
25
- Style/AlignHash:
26
- # Alignment of entries using hash rocket as separator. Valid values are:
27
- #
28
- # key - left alignment of keys
29
- # 'a' => 2
30
- # 'bb' => 3
31
- # separator - alignment of hash rockets, keys are right aligned
32
- # 'a' => 2
33
- # 'bb' => 3
34
- # table - left alignment of keys, hash rockets, and values
35
- # 'a' => 2
36
- # 'bb' => 3
37
- EnforcedHashRocketStyle: key
38
- # Alignment of entries using colon as separator. Valid values are:
39
- #
40
- # key - left alignment of keys
41
- # a: 0
42
- # bb: 1
43
- # separator - alignment of colons, keys are right aligned
44
- # a: 0
45
- # bb: 1
46
- # table - left alignment of keys and values
47
- # a: 0
48
- # bb: 1
49
- EnforcedColonStyle: key
50
- # Select whether hashes that are the last argument in a method call should be
51
- # inspected? Valid values are:
52
- #
53
- # always_inspect - Inspect both implicit and explicit hashes.
54
- # Registers an offense for:
55
- # function(a: 1,
56
- # b: 2)
57
- # Registers an offense for:
58
- # function({a: 1,
59
- # b: 2})
60
- # always_ignore - Ignore both implicit and explicit hashes.
61
- # Accepts:
62
- # function(a: 1,
63
- # b: 2)
64
- # Accepts:
65
- # function({a: 1,
66
- # b: 2})
67
- # ignore_implicit - Ignore only implicit hashes.
68
- # Accepts:
69
- # function(a: 1,
70
- # b: 2)
71
- # Registers an offense for:
72
- # function({a: 1,
73
- # b: 2})
74
- # ignore_explicit - Ignore only explicit hashes.
75
- # Accepts:
76
- # function({a: 1,
77
- # b: 2})
78
- # Registers an offense for:
79
- # function(a: 1,
80
- # b: 2)
81
- EnforcedLastArgumentHashStyle: always_inspect
82
- SupportedLastArgumentHashStyles:
83
- - always_inspect
84
- - always_ignore
85
- - ignore_implicit
86
- - ignore_explicit
87
-
88
- Style/AlignParameters:
89
- # Alignment of parameters in multi-line method calls.
90
- #
91
- # The `with_first_parameter` style aligns the following lines along the same
92
- # column as the first parameter.
93
- #
94
- # method_call(a,
95
- # b)
96
- #
97
- # The `with_fixed_indentation` style aligns the following lines with one
98
- # level of indentation relative to the start of the line with the method call.
99
- #
100
- # method_call(a,
101
- # b)
102
- EnforcedStyle: with_first_parameter
103
- SupportedStyles:
104
- - with_first_parameter
105
- - with_fixed_indentation
106
- # My prefered method is not available:
107
- # method_call(
108
- # a,
109
- # b
110
- # )
111
- Enabled: false
112
-
113
- Style/AndOr:
114
- # Whether `and` and `or` are banned only in conditionals (conditionals)
115
- # or completely (always).
116
- EnforcedStyle: always
117
- SupportedStyles:
118
- - always
119
- - conditionals
120
-
121
-
122
- # Checks if usage of %() or %Q() matches configuration.
123
- Style/BarePercentLiterals:
124
- EnforcedStyle: bare_percent
125
- SupportedStyles:
126
- - percent_q
127
- - bare_percent
128
-
129
- Style/BracesAroundHashParameters:
130
- EnforcedStyle: no_braces
131
- SupportedStyles:
132
- # The `braces` style enforces braces around all method parameters that are
133
- # hashes.
134
- - braces
135
- # The `no_braces` style checks that the last parameter doesn't have braces
136
- # around it.
137
- - no_braces
138
- # The `context_dependent` style checks that the last parameter doesn't have
139
- # braces around it, but requires braces if the second to last parameter is
140
- # also a hash literal.
141
- - context_dependent
142
-
143
- # Indentation of `when`.
144
- Style/CaseIndentation:
145
- IndentWhenRelativeTo: case
146
- SupportedStyles:
147
- - case
148
- - end
149
- IndentOneStep: false
150
-
151
- Style/ClassAndModuleChildren:
152
- # Checks the style of children definitions at classes and modules.
153
- #
154
- # Basically there are two different styles:
155
- #
156
- # `nested` - have each child on a separate line
157
- # class Foo
158
- # class Bar
159
- # end
160
- # end
161
- #
162
- # `compact` - combine definitions as much as possible
163
- # class Foo::Bar
164
- # end
165
- #
166
- # The compact style is only forced, for classes / modules with one child.
167
- EnforcedStyle: nested
168
- SupportedStyles:
169
- - nested
170
- - compact
171
-
172
- Style/ClassCheck:
173
- EnforcedStyle: is_a?
174
- SupportedStyles:
175
- - is_a?
176
- - kind_of?
177
-
178
- Style/ClassVars:
179
- Enabled: false
180
-
181
- # Align with the style guide.
182
- Style/CollectionMethods:
183
- # Mapping from undesired method to desired_method
184
- # e.g. to use `detect` over `find`:
185
- #
186
- # CollectionMethods:
187
- # PreferredMethods:
188
- # find: detect
189
- PreferredMethods:
190
- collect: 'map'
191
- collect!: 'map!'
192
- inject: 'reduce'
193
- detect: 'find'
194
- find_all: 'select'
195
-
196
- # Checks formatting of special comments
197
- Style/CommentAnnotation:
198
- Keywords:
199
- - TODO
200
- - FIXME
201
- - OPTIMIZE
202
- - HACK
203
- - REVIEW
204
-
205
- Style/Documentation:
206
- Enabled: false
207
-
208
- # Multi-line method chaining should be done with leading dots.
209
- Style/DotPosition:
210
- EnforcedStyle: leading
211
- SupportedStyles:
212
- - leading
213
- - trailing
214
-
215
- # Use empty lines between defs.
216
- Style/EmptyLineBetweenDefs:
217
- # If true, this parameter means that single line method definitions don't
218
- # need an empty line between them.
219
- AllowAdjacentOneLineDefs: false
220
-
221
- Style/EmptyLinesAroundBlockBody:
222
- EnforcedStyle: no_empty_lines
223
- SupportedStyles:
224
- - empty_lines
225
- - no_empty_lines
226
-
227
- Style/EmptyLinesAroundClassBody:
228
- Enabled: false
229
- EnforcedStyle: no_empty_lines
230
- SupportedStyles:
231
- - empty_lines
232
- - no_empty_lines
233
-
234
- Style/EmptyLinesAroundModuleBody:
235
- Enabled: false
236
- EnforcedStyle: no_empty_lines
237
- SupportedStyles:
238
- - empty_lines
239
- - no_empty_lines
240
-
241
- # Checks whether the source file has a utf-8 encoding comment or not
242
- Style/Encoding:
243
- EnforcedStyle: when_needed
244
- SupportedStyles:
245
- - when_needed
246
- - always
247
-
248
- Style/FileName:
249
- # File names listed in AllCops:Include are excluded by default. Add extra
250
- # excludes here.
251
- Exclude: []
252
-
253
- # Checks use of for or each in multiline loops.
254
- Style/For:
255
- EnforcedStyle: each
256
- SupportedStyles:
257
- - for
258
- - each
259
-
260
- # Enforce the method used for string formatting.
261
- Style/FormatString:
262
- EnforcedStyle: format
263
- SupportedStyles:
264
- - format
265
- - sprintf
266
- - percent
267
-
268
- # Built-in global variables are allowed by default.
269
- Style/GlobalVars:
270
- AllowedVariables: []
271
-
272
- # `MinBodyLength` defines the number of lines of the a body of an if / unless
273
- # needs to have to trigger this cop
274
- Style/GuardClause:
275
- MinBodyLength: 1
276
-
277
- Style/HashSyntax:
278
- EnforcedStyle: hash_rockets
279
- SupportedStyles:
280
- - ruby19
281
- - hash_rockets
282
-
283
- Style/IfUnlessModifier:
284
- MaxLineLength: 80
285
-
286
- Style/IndentationWidth:
287
- # Number of spaces for each indentation level.
288
- Width: 2
289
-
290
- # Checks the indentation of the first key in a hash literal.
291
- Style/IndentHash:
292
- # The value `special_inside_parentheses` means that hash literals with braces
293
- # that have their opening brace on the same line as a surrounding opening
294
- # round parenthesis, shall have their first key indented relative to the
295
- # first position inside the parenthesis.
296
- # The value `consistent` means that the indentation of the first key shall
297
- # always be relative to the first position of the line where the opening
298
- # brace is.
299
- EnforcedStyle: special_inside_parentheses
300
- SupportedStyles:
301
- - special_inside_parentheses
302
- - consistent
303
-
304
- Style/LambdaCall:
305
- EnforcedStyle: call
306
- SupportedStyles:
307
- - call
308
- - braces
309
-
310
- Style/Next:
311
- # With `always` all conditions at the end of an iteration needs to be
312
- # replaced by next - with `skip_modifier_ifs` the modifier if like this one
313
- # are ignored: [1, 2].each { |a| return 'yes' if a == 1 }
314
- EnforcedStyle: skip_modifier_ifs
315
- # `MinBodyLength` defines the number of lines of the a body of an if / unless
316
- # needs to have to trigger this cop
317
- MinBodyLength: 3
318
- SupportedStyles:
319
- - skip_modifier_ifs
320
- - always
321
-
322
- Style/NonNilCheck:
323
- # With `IncludeSemanticChanges` set to `true`, this cop reports offenses for
324
- # `!x.nil?` and autocorrects that and `x != nil` to solely `x`, which is
325
- # **usually** OK, but might change behavior.
326
- #
327
- # With `IncludeSemanticChanges` set to `false`, this cop does not report
328
- # offenses for `!x.nil?` and does no changes that might change behavior.
329
- IncludeSemanticChanges: false
330
-
331
- Style/MethodDefParentheses:
332
- EnforcedStyle: require_parentheses
333
- SupportedStyles:
334
- - require_parentheses
335
- - require_no_parentheses
336
-
337
- Style/MethodName:
338
- EnforcedStyle: snake_case
339
- SupportedStyles:
340
- - snake_case
341
- - camelCase
342
-
343
- Style/MultilineOperationIndentation:
344
- EnforcedStyle: indented
345
- SupportedStyles:
346
- - aligned
347
- - indented
348
-
349
- Style/NumericLiterals:
350
- MinDigits: 5
351
-
352
- # Allow safe assignment in conditions.
353
- Style/ParenthesesAroundCondition:
354
- AllowSafeAssignment: true
355
-
356
- Style/PercentLiteralDelimiters:
357
- PreferredDelimiters:
358
- '%': ()
359
- '%i': ()
360
- '%q': ()
361
- '%Q': ()
362
- '%r': '{}'
363
- '%s': ()
364
- '%w': ()
365
- '%W': ()
366
- '%x': ()
367
-
368
- Style/PercentQLiterals:
369
- EnforcedStyle: lower_case_q
370
- SupportedStyles:
371
- - lower_case_q # Use %q when possible, %Q when necessary
372
- - upper_case_q # Always use %Q
373
-
374
- Style/PredicateName:
375
- # Predicate name prefices.
376
- NamePrefix:
377
- - is_
378
- - has_
379
- - have_
380
- # Predicate name prefices that should be removed.
381
- NamePrefixBlacklist:
382
- - is_
383
- - has_
384
- - have_
385
-
386
- Style/RaiseArgs:
387
- EnforcedStyle: compact
388
- SupportedStyles:
389
- - compact # raise Exception.new(msg)
390
- - exploded # raise Exception, msg
391
-
392
- Style/RedundantReturn:
393
- # When true allows code like `return x, y`.
394
- AllowMultipleReturnValues: false
395
-
396
- Style/RegexpLiteral:
397
- # The maximum number of (escaped) slashes that a slash-delimited regexp is
398
- # allowed to have. If there are more slashes, a %r regexp shall be used.
399
- MaxSlashes: 1
400
-
401
- Style/Semicolon:
402
- # Allow ; to separate several expressions on the same line.
403
- AllowAsExpressionSeparator: false
404
-
405
- Style/SignalException:
406
- Enabled: false
407
- EnforcedStyle: semantic
408
- SupportedStyles:
409
- - only_raise
410
- - only_fail
411
- - semantic
412
-
413
- Style/SingleLineBlockParams:
414
- Methods:
415
- - reduce:
416
- - a
417
- - e
418
- - inject:
419
- - a
420
- - e
421
-
422
- Style/SingleLineMethods:
423
- AllowIfMethodIsEmpty: true
424
-
425
- Style/StringLiterals:
426
- EnforcedStyle: double_quotes
427
- SupportedStyles:
428
- - single_quotes
429
- - double_quotes
430
-
431
- Style/StringLiteralsInInterpolation:
432
- EnforcedStyle: single_quotes
433
- SupportedStyles:
434
- - single_quotes
435
- - double_quotes
436
-
437
- Style/SpaceAroundEqualsInParameterDefault:
438
- EnforcedStyle: space
439
- SupportedStyles:
440
- - space
441
- - no_space
442
-
443
- Style/SpaceBeforeBlockBraces:
444
- EnforcedStyle: space
445
- SupportedStyles:
446
- - space
447
- - no_space
448
-
449
- Style/SpaceInsideBlockBraces:
450
- EnforcedStyle: space
451
- SupportedStyles:
452
- - space
453
- - no_space
454
- # Valid values are: space, no_space
455
- EnforcedStyleForEmptyBraces: no_space
456
- # Space between { and |. Overrides EnforcedStyle if there is a conflict.
457
- SpaceBeforeBlockParameters: true
458
-
459
- Style/SpaceInsideHashLiteralBraces:
460
- EnforcedStyle: space
461
- EnforcedStyleForEmptyBraces: no_space
462
- SupportedStyles:
463
- - space
464
- - no_space
465
-
466
- Style/SymbolProc:
467
- # A list of method names to be ignored by the check.
468
- # The names should be fairly unique, otherwise you'll end up ignoring lots of code.
469
- IgnoredMethods:
470
- - respond_to
471
-
472
- Style/SpecialGlobalVars:
473
- Enabled: false
474
-
475
- Style/TrailingBlankLines:
476
- EnforcedStyle: final_newline
477
- SupportedStyles:
478
- - final_newline
479
- - final_blank_line
480
-
481
- Style/TrailingComma:
482
- # If EnforcedStyleForMultiline is comma, the cop allows a comma after the
483
- # last item of a list, but only for lists where each item is on its own line.
484
- EnforcedStyleForMultiline: no_comma
485
- SupportedStyles:
486
- - comma
487
- - no_comma
488
-
489
- # TrivialAccessors doesn't require exact name matches and doesn't allow
490
- # predicated methods by default.
491
- Style/TrivialAccessors:
492
- ExactNameMatch: false
493
- AllowPredicates: false
494
- # Allows trivial writers that don't end in an equal sign. e.g.
495
- #
496
- # def on_exception(action)
497
- # @on_exception=action
498
- # end
499
- # on_exception :restart
500
- #
501
- # Commonly used in DSLs
502
- AllowDSLWriters: false
503
- Whitelist:
504
- - to_ary
505
- - to_a
506
- - to_c
507
- - to_enum
508
- - to_h
509
- - to_hash
510
- - to_i
511
- - to_int
512
- - to_io
513
- - to_open
514
- - to_path
515
- - to_proc
516
- - to_r
517
- - to_regexp
518
- - to_str
519
- - to_s
520
- - to_sym
521
-
522
- Style/VariableName:
523
- EnforcedStyle: snake_case
524
- SupportedStyles:
525
- - snake_case
526
- - camelCase
527
-
528
- Style/WhileUntilModifier:
529
- Enabled: false
530
- MaxLineLength: 80
531
-
532
- Style/WordArray:
533
- MinSize: 0
534
- # The regular expression WordRegex decides what is considered a word.
535
- WordRegex: !ruby/regexp '/\A[\p{Word}]+\z/'
536
-
537
- ##################### Metrics ##################################
538
-
539
- Metrics/AbcSize:
540
- # The ABC size is a calculated magnitude, so this number can be a Fixnum or
541
- # a Float.
542
- Max: 22
543
-
544
- Metrics/BlockNesting:
545
- Max: 2
546
-
547
- Metrics/ClassLength:
548
- CountComments: false # count full line comments?
549
- Max: 100
550
-
551
- # Avoid complex methods.
552
- Metrics/CyclomaticComplexity:
553
- Max: 6
554
10
 
555
11
  Metrics/LineLength:
556
12
  Max: 120
557
- AllowURI: true
558
- URISchemes:
559
- - http
560
- - https
561
-
562
- Metrics/MethodLength:
563
- CountComments: false # count full line comments?
564
- Max: 16
565
-
566
- Metrics/ParameterLists:
567
- Max: 5
568
- CountKeywordArgs: true
569
13
 
570
- Metrics/PerceivedComplexity:
571
- Max: 7
572
-
573
- ##################### Lint ##################################
574
-
575
- # Allow safe assignment in conditions.
576
- Lint/AssignmentInCondition:
577
- AllowSafeAssignment: true
578
-
579
- # Align ends correctly.
580
- Lint/EndAlignment:
581
- # The value `keyword` means that `end` should be aligned with the matching
582
- # keyword (if, while, etc.).
583
- # The value `variable` means that in assignments, `end` should be aligned
584
- # with the start of the variable on the left hand side of `=`. In all other
585
- # situations, `end` should still be aligned with the keyword.
586
- AlignWith: keyword
587
- SupportedStyles:
588
- - keyword
589
- - variable
14
+ Style/Documentation:
15
+ Enabled: false
590
16
 
591
- Lint/DefEndAlignment:
592
- # The value `def` means that `end` should be aligned with the def keyword.
593
- # The value `start_of_line` means that `end` should be aligned with method
594
- # calls like `private`, `public`, etc, if present in front of the `def`
595
- # keyword on the same line.
596
- AlignWith: start_of_line
597
- SupportedStyles:
598
- - start_of_line
599
- - def
17
+ inherit_from: .rubocop_todo.yml