.rubocop_todo.yml in trailblazer-macro-2.1.0.beta7 vs .rubocop_todo.yml in trailblazer-macro-2.1.0.rc1
- old
+ new
@@ -1,14 +1,14 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
-# on 2018-03-08 20:00:06 +0100 using RuboCop version 0.53.0.
+# on 2018-06-08 20:10:37 +0200 using RuboCop version 0.57.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
-# Offense count: 2
+# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
Exclude:
@@ -21,14 +21,15 @@
Exclude:
- 'trailblazer-macro.gemspec'
# Offense count: 1
# Cop supports --auto-correct.
-# Configuration parameters: IndentationWidth.
+# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: outdent, indent
Layout/AccessModifierIndentation:
- EnforcedStyle: outdent
+ Exclude:
+ - 'lib/trailblazer/operation/pundit.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
@@ -52,22 +53,20 @@
Layout/BlockEndNewline:
Exclude:
- 'test/docs/guard_test.rb'
- 'test/docs/pundit_test.rb'
-# Offense count: 2
+# Offense count: 1
# Cop supports --auto-correct.
Layout/ClosingParenthesisIndentation:
Exclude:
- - 'test/docs/guard_test.rb'
- 'test/docs/pundit_test.rb'
-# Offense count: 10
+# Offense count: 9
# Cop supports --auto-correct.
Layout/CommentIndentation:
Exclude:
- - 'lib/trailblazer/operation/input_output.rb'
- 'test/docs/guard_test.rb'
- 'test/docs/macro_test.rb'
- 'test/docs/pundit_test.rb'
# Offense count: 2
@@ -109,16 +108,15 @@
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
Layout/EmptyLinesAroundClassBody:
Exclude:
- 'test/docs/rescue_test.rb'
-# Offense count: 7
+# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Layout/ExtraSpacing:
Exclude:
- - 'lib/trailblazer/operation/nested.rb'
- 'lib/trailblazer/operation/pundit.rb'
- 'test/docs/pundit_test.rb'
- 'test/operation/nested_test.rb'
# Offense count: 2
@@ -143,15 +141,14 @@
Layout/IndentationWidth:
Exclude:
- 'test/docs/guard_test.rb'
- 'test/docs/pundit_test.rb'
-# Offense count: 27
+# Offense count: 26
# Cop supports --auto-correct.
Layout/LeadingCommentSpace:
Exclude:
- - 'Gemfile'
- 'lib/trailblazer/operation/wrap.rb'
- 'test/docs/guard_test.rb'
- 'test/docs/pundit_test.rb'
- 'test/docs/rescue_test.rb'
- 'test/docs/wrap_test.rb'
@@ -171,15 +168,14 @@
Layout/MultilineMethodCallBraceLayout:
Exclude:
- 'test/docs/guard_test.rb'
- 'test/docs/pundit_test.rb'
-# Offense count: 11
+# Offense count: 9
# Cop supports --auto-correct.
Layout/SpaceAfterColon:
Exclude:
- - 'lib/trailblazer/operation/nested.rb'
- 'lib/trailblazer/operation/policy.rb'
- 'test/lib/methods.rb'
- 'test/operation/nested_test.rb'
# Offense count: 2
@@ -206,16 +202,10 @@
- 'test/docs/guard_test.rb'
- 'test/docs/model_test.rb'
- 'test/docs/nested_test.rb'
- 'test/operation/nested_test.rb'
-# Offense count: 1
-# Cop supports --auto-correct.
-Layout/SpaceBeforeComment:
- Exclude:
- - 'Gemfile'
-
# Offense count: 18
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBrackets: space, no_space
@@ -235,12 +225,14 @@
Exclude:
- 'test/docs/model_test.rb'
- 'test/operation/model_test.rb'
- 'test/test_helper.rb'
-# Offense count: 182
+# Offense count: 178
# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: space, no_space
Layout/SpaceInsideParens:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
@@ -296,57 +288,43 @@
- 'test/operation/nested_test.rb'
# Offense count: 5
Lint/UselessAssignment:
Exclude:
- - 'lib/trailblazer/operation/input_output.rb'
+ - 'lib/trailblazer/operation/nested.rb'
- 'test/docs/model_test.rb'
- 'test/docs/wrap_test.rb'
# Offense count: 3
Metrics/AbcSize:
Max: 25
-# Offense count: 6
+# Offense count: 5
# Configuration parameters: CountComments.
Metrics/MethodLength:
- Max: 17
+ Max: 15
-# Offense count: 5
-# Configuration parameters: .
-# SupportedStyles: snake_case, camelCase
-Naming/MethodName:
- EnforcedStyle: snake_case
-
-# Offense count: 38
+# Offense count: 1
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
-Naming/UncommunicativeBlockParamName:
- Exclude:
- - 'test/docs/guard_test.rb'
- - 'test/docs/nested_test.rb'
- - 'test/docs/rescue_test.rb'
- - 'test/operation/nested_test.rb'
-
-# Offense count: 28
-# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
-# AllowedNames: io, id
+# AllowedNames: io, id, to, by, on, in, at
Naming/UncommunicativeMethodParamName:
Exclude:
- - 'lib/trailblazer/operation/model.rb'
- - 'test/docs/guard_test.rb'
- - 'test/docs/nested_test.rb'
- - 'test/lib/methods.rb'
- - 'test/operation/model_test.rb'
- 'test/operation/nested_test.rb'
- - 'test/operation/pundit_test.rb'
# Offense count: 1
# Cop supports --auto-correct.
Performance/StringReplacement:
Exclude:
- 'test/docs/wrap_test.rb'
+# Offense count: 1
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: inline, group
+Style/AccessModifierDeclarations:
+ Exclude:
+ - 'lib/trailblazer/operation/wrap.rb'
+
# Offense count: 12
# Cop supports --auto-correct.
Style/BlockComments:
Exclude:
- 'test/docs/macro_test.rb'
@@ -360,18 +338,17 @@
Style/BracesAroundHashParameters:
Exclude:
- 'test/docs/rescue_test.rb'
- 'test/docs/wrap_test.rb'
-# Offense count: 17
+# Offense count: 16
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'lib/trailblazer/operation/guard.rb'
- - 'lib/trailblazer/operation/input_output.rb'
- 'lib/trailblazer/operation/model.rb'
- 'lib/trailblazer/operation/policy.rb'
- 'lib/trailblazer/operation/pundit.rb'
- 'lib/trailblazer/operation/rescue.rb'
- 'lib/trailblazer/operation/wrap.rb'
@@ -432,16 +409,10 @@
Exclude:
- 'Rakefile'
- 'lib/trailblazer/operation/nested.rb'
- 'test/docs/guard_test.rb'
-# Offense count: 1
-# Cop supports --auto-correct.
-Style/IfUnlessModifier:
- Exclude:
- - 'lib/trailblazer/operation/nested.rb'
-
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: line_count_dependent, lambda, literal
Style/Lambda:
@@ -529,10 +500,16 @@
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'test/docs/wrap_test.rb'
+# Offense count: 2
+# Cop supports --auto-correct.
+Style/SelfAssignment:
+ Exclude:
+ - 'lib/trailblazer/operation/nested.rb'
+
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: only_raise, only_fail, semantic
Style/SignalException:
@@ -559,10 +536,10 @@
Exclude:
- 'Gemfile'
- 'Rakefile'
- 'trailblazer-macro.gemspec'
-# Offense count: 4
+# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Exclude: