# This configuration was generated by # `rubocop --auto-gen-config` # 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: 1 # Cop supports --auto-correct. # Configuration parameters: Include, TreatCommentsAsGroupSeparators. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'trailblazer-macro.gemspec' # Offense count: 1 # Configuration parameters: Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: - 'trailblazer-macro.gemspec' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: outdent, indent Layout/AccessModifierIndentation: Exclude: - 'lib/trailblazer/operation/pundit.rb' # 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' # 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/guard_test.rb' - 'test/docs/pundit_test.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/ClosingParenthesisIndentation: Exclude: - 'test/docs/pundit_test.rb' # Offense count: 9 # Cop supports --auto-correct. Layout/CommentIndentation: Exclude: - 'test/docs/guard_test.rb' - 'test/docs/macro_test.rb' - 'test/docs/pundit_test.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: leading, trailing Layout/DotPosition: Exclude: - 'test/docs/nested_test.rb' # Offense count: 8 # Cop supports --auto-correct. # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines. Layout/EmptyLineBetweenDefs: Exclude: - 'test/operation/model_test.rb' - 'test/operation/nested_test.rb' - 'test/operation/pundit_test.rb' - 'test/test_helper.rb' # Offense count: 8 # Cop supports --auto-correct. Layout/EmptyLines: Exclude: - 'test/docs/model_test.rb' - 'test/docs/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/operation/pundit.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # 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: 6 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment. Layout/ExtraSpacing: Exclude: - 'lib/trailblazer/operation/pundit.rb' - 'test/docs/pundit_test.rb' - 'test/operation/nested_test.rb' # 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: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: normal, rails Layout/IndentationConsistency: Exclude: - 'test/docs/pundit_test.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'test/docs/guard_test.rb' - 'test/docs/pundit_test.rb' # Offense count: 26 # Cop supports --auto-correct. Layout/LeadingCommentSpace: Exclude: - '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' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineHashBraceLayout: Exclude: - 'test/docs/nested_test.rb' # Offense count: 2 # 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' # Offense count: 9 # Cop supports --auto-correct. Layout/SpaceAfterColon: Exclude: - 'lib/trailblazer/operation/policy.rb' - 'test/lib/methods.rb' - 'test/operation/nested_test.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleInsidePipes. # SupportedStylesInsidePipes: space, no_space Layout/SpaceAroundBlockParameters: Exclude: - 'lib/trailblazer/operation/guard.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: . # SupportedStyles: space, no_space Layout/SpaceAroundEqualsInParameterDefault: EnforcedStyle: no_space # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Layout/SpaceAroundOperators: Exclude: - 'lib/trailblazer/operation/nested.rb' - 'test/docs/guard_test.rb' - 'test/docs/model_test.rb' - 'test/docs/nested_test.rb' - 'test/operation/nested_test.rb' # 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/operation/policy.rb' - 'lib/trailblazer/operation/rescue.rb' - 'test/docs/macro_test.rb' - 'test/docs/wrap_test.rb' # 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/model_test.rb' - 'test/operation/model_test.rb' - 'test/test_helper.rb' # 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. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. # SupportedStyles: space, no_space # SupportedStylesForEmptyBrackets: space, no_space Layout/SpaceInsideReferenceBrackets: Exclude: - 'lib/trailblazer/operation/policy.rb' # Offense count: 3 Lint/AmbiguousBlockAssociation: Exclude: - 'test/docs/rescue_test.rb' # Offense count: 2 Lint/AmbiguousRegexpLiteral: Exclude: - 'test/docs/rescue_test.rb' - 'test/docs/wrap_test.rb' # Offense count: 13 Lint/UnreachableCode: Exclude: - 'test/docs/rescue_test.rb' - 'test/docs/wrap_test.rb' - 'test/operation/nested_test.rb' # Offense count: 15 # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. Lint/UnusedBlockArgument: Exclude: - 'lib/trailblazer/operation/rescue.rb' - 'lib/trailblazer/operation/wrap.rb' - 'test/docs/guard_test.rb' - 'test/docs/macro_test.rb' - 'test/operation/nested_test.rb' - 'test/test_helper.rb' # Offense count: 22 # Cop supports --auto-correct. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. Lint/UnusedMethodArgument: Exclude: - '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: 5 Lint/UselessAssignment: Exclude: - 'lib/trailblazer/operation/nested.rb' - 'test/docs/model_test.rb' - 'test/docs/wrap_test.rb' # Offense count: 3 Metrics/AbcSize: Max: 25 # Offense count: 5 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 15 # Offense count: 1 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. # AllowedNames: io, id, to, by, on, in, at Naming/UncommunicativeMethodParamName: Exclude: - 'test/operation/nested_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' - 'test/docs/rescue_test.rb' - 'test/docs/wrap_test.rb' # Offense count: 18 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: braces, no_braces, context_dependent Style/BracesAroundHashParameters: Exclude: - 'test/docs/rescue_test.rb' - 'test/docs/wrap_test.rb' # 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/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/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: 2 Style/CommentedKeyword: Exclude: - 'lib/trailblazer/operation/wrap.rb' # Offense count: 13 Style/Documentation: Exclude: - 'spec/**/*' - 'test/**/*' - '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: 1 Style/DoubleNegation: Exclude: - 'lib/trailblazer/operation/guard.rb' # Offense count: 1 # Cop supports --auto-correct. Style/ExpandPathArguments: Exclude: - 'trailblazer-macro.gemspec' # 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/operation/nested.rb' - 'test/docs/guard_test.rb' # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: line_count_dependent, lambda, literal Style/Lambda: Exclude: - 'lib/trailblazer/operation/guard.rb' - 'lib/trailblazer/operation/rescue.rb' - 'lib/trailblazer/operation/wrap.rb' - 'test/docs/nested_test.rb' # Offense count: 112 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: call, braces Style/LambdaCall: Exclude: - '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/rescue_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/operation/nested.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: both, prefix, postfix Style/NegatedIf: Exclude: - 'lib/trailblazer/operation/pundit.rb' # Offense count: 3 # Cop supports --auto-correct. Style/ParallelAssignment: Exclude: - 'lib/trailblazer/operation/pundit.rb' - 'test/docs/pundit_test.rb' - 'test/operation/pundit_test.rb' # 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/rescue_test.rb' - 'test/docs/wrap_test.rb' - 'test/operation/model_test.rb' - 'test/operation/nested_test.rb' - 'test/operation/pundit_test.rb' # 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/operation/nested.rb' - 'lib/trailblazer/operation/policy.rb' - 'lib/trailblazer/operation/wrap.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # 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: Exclude: - 'test/docs/rescue_test.rb' - 'test/docs/wrap_test.rb' - 'test/operation/nested_test.rb' # Offense count: 15 # Cop supports --auto-correct. # Configuration parameters: AllowIfMethodIsEmpty. Style/SingleLineMethods: Exclude: - 'test/operation/model_test.rb' - 'test/operation/nested_test.rb' - 'test/operation/pundit_test.rb' - 'test/test_helper.rb' # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Exclude: - 'Gemfile' - 'Rakefile' - 'trailblazer-macro.gemspec' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline. # SupportedStylesForMultiline: comma, consistent_comma, no_comma Style/TrailingCommaInHashLiteral: Exclude: - 'lib/trailblazer/operation/nested.rb' - 'lib/trailblazer/operation/wrap.rb' - 'test/docs/rescue_test.rb' # Offense count: 152 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Metrics/LineLength: Max: 219