.rubocop_todo.yml in trailblazer-macro-2.1.0.beta1 vs .rubocop_todo.yml in trailblazer-macro-2.1.0.beta2

- old
+ new

@@ -1,24 +1,16 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2018-03-03 18:15:21 +0100 using RuboCop version 0.52.1. +# on 2018-03-08 20:00:06 +0100 using RuboCop version 0.53.0. # 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: 1 +# Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: Include, TreatCommentsAsGroupSeparators. -# Include: **/Gemfile, **/gems.rb -Bundler/OrderedGems: - Exclude: - - 'Gemfile' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: Include, TreatCommentsAsGroupSeparators. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'trailblazer-macro.gemspec' @@ -34,49 +26,53 @@ # Configuration parameters: IndentationWidth. # SupportedStyles: outdent, indent Layout/AccessModifierIndentation: EnforcedStyle: outdent -# Offense count: 5 +# Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. # SupportedHashRocketStyles: key, separator, table # SupportedColonStyles: key, separator, table # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit Layout/AlignHash: Exclude: - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' -# Offense count: 5 +# Offense count: 3 # Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, IndentationWidth. +# SupportedStyles: with_first_parameter, with_fixed_indentation +Layout/AlignParameters: + Exclude: + - 'test/docs/guard_test.rb' + - 'test/docs/wrap_test.rb' + +# Offense count: 3 +# Cop supports --auto-correct. Layout/BlockEndNewline: Exclude: - - 'test/docs/nested_test.rb' + - 'test/docs/guard_test.rb' - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' - - 'test/docs/wrap.rb' # Offense count: 2 # Cop supports --auto-correct. Layout/ClosingParenthesisIndentation: Exclude: + - 'test/docs/guard_test.rb' - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' -# Offense count: 17 +# Offense count: 10 # 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/nested_test.rb' - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' - - 'test/docs/rescue_test.rb' - - 'test/docs/wrap.rb' -# Offense count: 3 +# Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: leading, trailing Layout/DotPosition: Exclude: @@ -85,107 +81,83 @@ # Offense count: 8 # Cop supports --auto-correct. # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines. Layout/EmptyLineBetweenDefs: Exclude: - - 'test/macro/model_test.rb' - - 'test/macro/nested_test.rb' - - 'test/macro/pundit_test.rb' + - 'test/operation/model_test.rb' + - 'test/operation/nested_test.rb' + - 'test/operation/pundit_test.rb' - 'test/test_helper.rb' -# Offense count: 9 +# Offense count: 8 # Cop supports --auto-correct. Layout/EmptyLines: Exclude: + - 'test/docs/model_test.rb' - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' - - 'test/docs/rescue_test.rb' - - 'test/macro/nested_test.rb' - - 'test/macro/pundit_test.rb' + - 'test/operation/nested_test.rb' + - 'test/operation/pundit_test.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLinesAroundAccessModifier: Exclude: - - 'lib/trailblazer/macro/policy/pundit.rb' + - 'lib/trailblazer/operation/pundit.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. -# SupportedStyles: empty_lines, no_empty_lines -Layout/EmptyLinesAroundBlockBody: - Exclude: - - 'test/docs/wrap.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines +# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only Layout/EmptyLinesAroundClassBody: Exclude: - - 'lib/trailblazer/macro/wrap.rb' - - 'test/docs/nested_test.rb' + - 'test/docs/rescue_test.rb' -# Offense count: 10 +# Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment. Layout/ExtraSpacing: Exclude: - - 'lib/trailblazer/macro/nested.rb' - - 'lib/trailblazer/macro/policy/pundit.rb' - - 'test/docs/nested_test.rb' + - 'lib/trailblazer/operation/nested.rb' + - 'lib/trailblazer/operation/pundit.rb' - 'test/docs/pundit_test.rb' - - 'test/macro/nested_test.rb' + - 'test/operation/nested_test.rb' -# Offense count: 1 +# Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: IndentationWidth. Layout/IndentAssignment: Exclude: + - 'test/docs/guard_test.rb' - 'test/docs/pundit_test.rb' -# Offense count: 19 +# Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: normal, rails Layout/IndentationConsistency: Exclude: - - 'test/docs/nested_test.rb' - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' - - 'test/docs/rescue_test.rb' - - 'test/docs/wrap.rb' -# Offense count: 10 +# Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - - 'test/docs/nested_test.rb' + - 'test/docs/guard_test.rb' - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' - - 'test/docs/rescue_test.rb' - - 'test/docs/wrap.rb' -# Offense count: 21 +# Offense count: 27 # Cop supports --auto-correct. Layout/LeadingCommentSpace: Exclude: - 'Gemfile' - - 'lib/trailblazer/macro/wrap.rb' - - 'test/docs/nested_test.rb' + - 'lib/trailblazer/operation/wrap.rb' + - 'test/docs/guard_test.rb' - 'test/docs/pundit_test.rb' - 'test/docs/rescue_test.rb' - - 'test/docs/wrap.rb' + - 'test/docs/wrap_test.rb' -# Offense count: 2 -# Cop supports --auto-correct. -Layout/MultilineBlockLayout: - Exclude: - - 'test/docs/nested_test.rb' - - 'test/docs/representer_test.rb' - # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineHashBraceLayout: @@ -196,447 +168,411 @@ # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineMethodCallBraceLayout: Exclude: + - 'test/docs/guard_test.rb' - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' -# Offense count: 1 +# Offense count: 11 # Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: aligned, indented, indented_relative_to_receiver -Layout/MultilineMethodCallIndentation: - Exclude: - - 'test/docs/nested_test.rb' - -# Offense count: 16 -# Cop supports --auto-correct. Layout/SpaceAfterColon: Exclude: - - 'lib/trailblazer/macro/nested.rb' - - 'lib/trailblazer/macro/policy.rb' - - 'lib/trailblazer/macro/representer.rb' - - 'test/docs/model_test.rb' - - 'test/docs/nested_test.rb' - - 'test/macro/model_test.rb' - - 'test/macro/nested_test.rb' + - 'lib/trailblazer/operation/nested.rb' + - 'lib/trailblazer/operation/policy.rb' + - 'test/lib/methods.rb' + - 'test/operation/nested_test.rb' -# Offense count: 1 +# Offense count: 2 # Cop supports --auto-correct. -Layout/SpaceAfterNot: - Exclude: - - 'test/docs/nested_test.rb' - -# Offense count: 4 -# Cop supports --auto-correct. # Configuration parameters: EnforcedStyleInsidePipes. # SupportedStylesInsidePipes: space, no_space Layout/SpaceAroundBlockParameters: Exclude: - - 'lib/trailblazer/macro/policy/guard.rb' - - 'test/docs/nested_test.rb' + - 'lib/trailblazer/operation/guard.rb' -# Offense count: 3 +# Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: . # SupportedStyles: space, no_space Layout/SpaceAroundEqualsInParameterDefault: EnforcedStyle: no_space -# Offense count: 7 +# Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Layout/SpaceAroundOperators: Exclude: - - 'lib/trailblazer/macro/nested.rb' + - 'lib/trailblazer/operation/nested.rb' + - 'test/docs/guard_test.rb' - 'test/docs/model_test.rb' - 'test/docs/nested_test.rb' - - 'test/docs/representer_test.rb' - - 'test/macro/nested_test.rb' + - 'test/operation/nested_test.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/SpaceBeforeComment: Exclude: - 'Gemfile' -# Offense count: 6 +# Offense count: 18 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBrackets: space, no_space Layout/SpaceInsideArrayLiteralBrackets: Exclude: - - 'lib/trailblazer/macro/policy.rb' + - 'lib/trailblazer/operation/policy.rb' + - 'lib/trailblazer/operation/rescue.rb' - 'test/docs/macro_test.rb' - - 'test/docs/wrap.rb' + - 'test/docs/wrap_test.rb' -# Offense count: 55 +# Offense count: 28 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: Exclude: - - 'test/docs/nested_test.rb' - - 'test/docs/rescue_test.rb' - - 'test/docs/wrap.rb' - - 'test/macro/model_test.rb' + - 'test/docs/model_test.rb' + - 'test/operation/model_test.rb' - 'test/test_helper.rb' -# Offense count: 269 +# Offense count: 182 # Cop supports --auto-correct. Layout/SpaceInsideParens: - Exclude: - - 'lib/trailblazer/macro/nested.rb' - - 'lib/trailblazer/macro/policy.rb' - - 'lib/trailblazer/macro/policy/guard.rb' - - 'lib/trailblazer/macro/policy/pundit.rb' - - 'lib/trailblazer/macro/wrap.rb' - - 'test/docs/macro_test.rb' - - 'test/docs/model_test.rb' - - 'test/docs/nested_test.rb' - - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' - - 'test/docs/rescue_test.rb' - - 'test/docs/wrap.rb' - - 'test/macro/model_test.rb' - - 'test/macro/nested_test.rb' - - 'test/macro/pundit_test.rb' + Enabled: false # Offense count: 2 # Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. # SupportedStyles: space, no_space +# SupportedStylesForEmptyBrackets: space, no_space Layout/SpaceInsideReferenceBrackets: Exclude: - - 'lib/trailblazer/macro/policy.rb' + - 'lib/trailblazer/operation/policy.rb' # Offense count: 3 Lint/AmbiguousBlockAssociation: Exclude: - 'test/docs/rescue_test.rb' -# Offense count: 1 +# Offense count: 2 Lint/AmbiguousRegexpLiteral: Exclude: - 'test/docs/rescue_test.rb' + - 'test/docs/wrap_test.rb' -# Offense count: 3 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleAlignWith. -# SupportedStylesAlignWith: either, start_of_block, start_of_line -Lint/BlockAlignment: +# Offense count: 13 +Lint/UnreachableCode: Exclude: - - 'test/docs/wrap.rb' - -# Offense count: 8 -Lint/ParenthesesAsGroupedExpression: - Exclude: - - 'test/docs/nested_test.rb' - - 'test/docs/representer_test.rb' - 'test/docs/rescue_test.rb' + - 'test/docs/wrap_test.rb' + - 'test/operation/nested_test.rb' -# Offense count: 4 -Lint/UnreachableCode: - Exclude: - - 'test/macro/nested_test.rb' - -# Offense count: 8 +# Offense count: 15 # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. Lint/UnusedBlockArgument: Exclude: - - 'lib/trailblazer/macro/rescue.rb' + - 'lib/trailblazer/operation/rescue.rb' + - 'lib/trailblazer/operation/wrap.rb' + - 'test/docs/guard_test.rb' - 'test/docs/macro_test.rb' - - 'test/docs/nested_test.rb' - - 'test/docs/wrap.rb' - - 'test/macro/nested_test.rb' + - 'test/operation/nested_test.rb' - 'test/test_helper.rb' -# Offense count: 14 +# Offense count: 22 # Cop supports --auto-correct. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. Lint/UnusedMethodArgument: Exclude: - - 'lib/trailblazer/macro/model.rb' - - 'lib/trailblazer/macro/nested.rb' - - 'lib/trailblazer/macro/policy.rb' - - 'lib/trailblazer/macro/policy/guard.rb' - - 'test/docs/nested_test.rb' - - 'test/docs/wrap.rb' - - 'test/macro/nested_test.rb' + - 'lib/trailblazer/operation/guard.rb' + - 'lib/trailblazer/operation/model.rb' + - 'lib/trailblazer/operation/nested.rb' + - 'lib/trailblazer/operation/policy.rb' + - 'test/docs/guard_test.rb' + - 'test/docs/wrap_test.rb' + - 'test/lib/methods.rb' + - 'test/operation/nested_test.rb' -# Offense count: 2 +# Offense count: 5 Lint/UselessAssignment: Exclude: + - 'lib/trailblazer/operation/input_output.rb' - 'test/docs/model_test.rb' - - 'test/docs/nested_test.rb' + - 'test/docs/wrap_test.rb' -# Offense count: 1 -Lint/Void: - Exclude: - - 'test/docs/representer_test.rb' - -# Offense count: 2 +# Offense count: 3 Metrics/AbcSize: Max: 25 -# Offense count: 4 +# Offense count: 6 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 17 +# Offense count: 5 +# Configuration parameters: . +# SupportedStyles: snake_case, camelCase +Naming/MethodName: + EnforcedStyle: snake_case + +# Offense count: 38 +# 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 +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: 12 +# Cop supports --auto-correct. Style/BlockComments: Exclude: - 'test/docs/macro_test.rb' + - 'test/docs/rescue_test.rb' + - 'test/docs/wrap_test.rb' -# Offense count: 3 +# Offense count: 18 # Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods. -# SupportedStyles: line_count_based, semantic, braces_for_chaining -# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object -# FunctionalMethods: let, let!, subject, watch -# IgnoredMethods: lambda, proc, it -Style/BlockDelimiters: +# Configuration parameters: EnforcedStyle. +# SupportedStyles: braces, no_braces, context_dependent +Style/BracesAroundHashParameters: Exclude: - 'test/docs/rescue_test.rb' - - 'test/docs/wrap.rb' + - 'test/docs/wrap_test.rb' -# Offense count: 2 -Style/CaseEquality: - Exclude: - - 'lib/trailblazer/macro/wrap.rb' - -# Offense count: 9 +# Offense count: 17 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Exclude: - - 'lib/trailblazer/macro/model.rb' - - 'lib/trailblazer/macro/policy.rb' - - 'lib/trailblazer/macro/policy/guard.rb' - - 'lib/trailblazer/macro/policy/pundit.rb' - - 'lib/trailblazer/macro/representer.rb' - - 'lib/trailblazer/macro/rescue.rb' - - 'lib/trailblazer/macro/wrap.rb' + - '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' - 'test/docs/nested_test.rb' + - 'test/docs/rescue_test.rb' + - 'test/docs/wrap_test.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: is_a?, kind_of? Style/ClassCheck: Exclude: - - 'lib/trailblazer/macro/nested.rb' + - 'lib/trailblazer/operation/nested.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: Keywords. # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW Style/CommentAnnotation: Exclude: - 'test/docs/pundit_test.rb' -# Offense count: 3 +# Offense count: 2 Style/CommentedKeyword: Exclude: - - 'lib/trailblazer/macro/wrap.rb' - - 'test/docs/nested_test.rb' + - 'lib/trailblazer/operation/wrap.rb' -# Offense count: 14 +# Offense count: 13 Style/Documentation: Exclude: - 'spec/**/*' - 'test/**/*' - - 'lib/trailblazer/macro/model.rb' - - 'lib/trailblazer/macro/nested.rb' - - 'lib/trailblazer/macro/policy.rb' - - 'lib/trailblazer/macro/policy/guard.rb' - - 'lib/trailblazer/macro/policy/pundit.rb' - - 'lib/trailblazer/macro/representer.rb' - - 'lib/trailblazer/macro/rescue.rb' - - 'lib/trailblazer/macro/wrap.rb' + - 'lib/trailblazer/operation/guard.rb' + - 'lib/trailblazer/operation/model.rb' + - 'lib/trailblazer/operation/nested.rb' + - 'lib/trailblazer/operation/policy.rb' + - 'lib/trailblazer/operation/pundit.rb' + - 'lib/trailblazer/operation/rescue.rb' + - 'lib/trailblazer/operation/wrap.rb' -# Offense count: 2 +# Offense count: 1 Style/DoubleNegation: Exclude: - - 'lib/trailblazer/macro/policy/guard.rb' - - 'test/docs/nested_test.rb' + - 'lib/trailblazer/operation/guard.rb' # Offense count: 1 # Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: compact, expanded -Style/EmptyMethod: +Style/ExpandPathArguments: Exclude: - - 'test/docs/wrap.rb' + - 'trailblazer-macro.gemspec' -# Offense count: 1 -# Configuration parameters: MinBodyLength. -Style/GuardClause: - Exclude: - - 'lib/trailblazer/macro/wrap.rb' - -# Offense count: 3 +# Offense count: 8 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys Style/HashSyntax: Exclude: - 'Rakefile' - - 'lib/trailblazer/macro/nested.rb' + - 'lib/trailblazer/operation/nested.rb' + - 'test/docs/guard_test.rb' -# Offense count: 2 +# Offense count: 1 # Cop supports --auto-correct. Style/IfUnlessModifier: Exclude: - - 'lib/trailblazer/macro/nested.rb' - - 'test/docs/representer_test.rb' + - 'lib/trailblazer/operation/nested.rb' -# Offense count: 9 +# Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: line_count_dependent, lambda, literal Style/Lambda: Exclude: - - 'lib/trailblazer/macro/policy/guard.rb' - - 'lib/trailblazer/macro/representer.rb' - - 'lib/trailblazer/macro/rescue.rb' - - 'lib/trailblazer/macro/wrap.rb' + - 'lib/trailblazer/operation/guard.rb' + - 'lib/trailblazer/operation/rescue.rb' + - 'lib/trailblazer/operation/wrap.rb' - 'test/docs/nested_test.rb' - - 'test/docs/wrap.rb' -# Offense count: 111 +# Offense count: 112 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: call, braces Style/LambdaCall: Exclude: - - 'lib/trailblazer/macro/policy.rb' - - 'lib/trailblazer/macro/representer.rb' - - 'lib/trailblazer/macro/wrap.rb' + - 'lib/trailblazer/operation/policy.rb' + - 'lib/trailblazer/operation/rescue.rb' + - 'lib/trailblazer/operation/wrap.rb' + - 'test/docs/guard_test.rb' - 'test/docs/macro_test.rb' - 'test/docs/model_test.rb' - 'test/docs/nested_test.rb' - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' - 'test/docs/rescue_test.rb' - - 'test/docs/wrap.rb' - - 'test/macro/model_test.rb' - - 'test/macro/nested_test.rb' - - 'test/macro/pundit_test.rb' + - 'test/docs/wrap_test.rb' + - 'test/operation/model_test.rb' + - 'test/operation/nested_test.rb' + - 'test/operation/pundit_test.rb' # Offense count: 1 Style/MultilineTernaryOperator: Exclude: - - 'lib/trailblazer/macro/nested.rb' + - 'lib/trailblazer/operation/nested.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: both, prefix, postfix Style/NegatedIf: Exclude: - - 'lib/trailblazer/macro/policy/pundit.rb' + - 'lib/trailblazer/operation/pundit.rb' # Offense count: 3 # Cop supports --auto-correct. Style/ParallelAssignment: Exclude: - - 'lib/trailblazer/macro/policy/pundit.rb' + - 'lib/trailblazer/operation/pundit.rb' - 'test/docs/pundit_test.rb' - - 'test/macro/pundit_test.rb' + - 'test/operation/pundit_test.rb' -# Offense count: 79 +# Offense count: 69 # Cop supports --auto-correct. # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Exclude: + - 'test/docs/guard_test.rb' - 'test/docs/macro_test.rb' - 'test/docs/model_test.rb' - 'test/docs/nested_test.rb' - 'test/docs/pundit_test.rb' - - 'test/docs/representer_test.rb' - 'test/docs/rescue_test.rb' - - 'test/docs/wrap.rb' - - 'test/macro/model_test.rb' - - 'test/macro/nested_test.rb' - - 'test/macro/pundit_test.rb' + - 'test/docs/wrap_test.rb' + - 'test/operation/model_test.rb' + - 'test/operation/nested_test.rb' + - 'test/operation/pundit_test.rb' -# Offense count: 4 +# Offense count: 5 # Cop supports --auto-correct. +Style/RedundantBegin: + Exclude: + - 'test/docs/wrap_test.rb' + +# Offense count: 5 +# Cop supports --auto-correct. # Configuration parameters: AllowMultipleReturnValues. Style/RedundantReturn: Exclude: - - 'lib/trailblazer/macro/nested.rb' - - 'lib/trailblazer/macro/policy.rb' + - 'lib/trailblazer/operation/nested.rb' + - 'lib/trailblazer/operation/policy.rb' + - 'lib/trailblazer/operation/wrap.rb' -# Offense count: 2 +# Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: implicit, explicit Style/RescueStandardError: Exclude: - - 'test/docs/wrap.rb' + - 'test/docs/wrap_test.rb' -# Offense count: 1 +# Offense count: 13 # Cop supports --auto-correct. -# Configuration parameters: AllowAsExpressionSeparator. -Style/Semicolon: - Exclude: - - 'lib/trailblazer/macro/representer.rb' - -# Offense count: 4 -# Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: only_raise, only_fail, semantic Style/SignalException: Exclude: - - 'test/macro/nested_test.rb' + - 'test/docs/rescue_test.rb' + - 'test/docs/wrap_test.rb' + - 'test/operation/nested_test.rb' -# Offense count: 17 +# Offense count: 15 # Cop supports --auto-correct. # Configuration parameters: AllowIfMethodIsEmpty. Style/SingleLineMethods: Exclude: - - 'test/docs/wrap.rb' - - 'test/macro/model_test.rb' - - 'test/macro/nested_test.rb' - - 'test/macro/pundit_test.rb' + - 'test/operation/model_test.rb' + - 'test/operation/nested_test.rb' + - 'test/operation/pundit_test.rb' - 'test/test_helper.rb' -# Offense count: 6 +# Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Exclude: - 'Gemfile' - 'Rakefile' - - 'test/docs/representer_test.rb' - 'trailblazer-macro.gemspec' -# Offense count: 1 +# Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline. # SupportedStylesForMultiline: comma, consistent_comma, no_comma -Style/TrailingCommaInLiteral: +Style/TrailingCommaInHashLiteral: Exclude: - - 'lib/trailblazer/macro/nested.rb' + - 'lib/trailblazer/operation/nested.rb' + - 'lib/trailblazer/operation/wrap.rb' + - 'test/docs/rescue_test.rb' -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: AllowNamedUnderscoreVariables. -Style/TrailingUnderscoreVariable: - Exclude: - - 'test/docs/nested_test.rb' - -# Offense count: 164 +# Offense count: 152 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Metrics/LineLength: Max: 219