# This configuration was generated by # `rubocop --auto-gen-config` # on 2020-07-31 10:58:59 +0200 using RuboCop version 0.76.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 # Cop supports --auto-correct. # Configuration parameters: TreatCommentsAsGroupSeparators, Include. # Include: **/*.gemfile, **/Gemfile, **/gems.rb Bundler/OrderedGems: Exclude: - 'Gemfile' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: with_first_argument, with_fixed_indentation Layout/AlignArguments: Exclude: - 'bin/rspec' - 'lib/generators/solidus_starter_frontend/views/override_generator.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. # SupportedHashRocketStyles: key, separator, table # SupportedColonStyles: key, separator, table # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit Layout/AlignHash: Exclude: - 'spec/system/coupon_code_spec.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: leading, trailing Layout/DotPosition: Exclude: - 'app/controllers/spree/products_controller.rb' - 'spec/controllers/spree/orders_controller_spec.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLineAfterGuardClause: Exclude: - 'spec/generators/solidus/views/override_generator_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. Layout/ExtraSpacing: Exclude: - 'spec/controllers/spree/checkout_controller_spec.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces Layout/IndentFirstHashElement: EnforcedStyle: consistent # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'spec/system/products_spec.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: aligned, indented, indented_relative_to_receiver Layout/MultilineMethodCallIndentation: Exclude: - 'app/controllers/spree/products_controller.rb' # Offense count: 6 Lint/AmbiguousBlockAssociation: Exclude: - 'spec/controllers/spree/checkout_controller_spec.rb' - 'spec/controllers/spree/current_order_tracking_spec.rb' # Offense count: 1 # Configuration parameters: AllowSafeAssignment. Lint/AssignmentInCondition: Exclude: - 'app/controllers/spree/orders_controller.rb' # Offense count: 12 Metrics/AbcSize: Max: 41 # Offense count: 1 # Configuration parameters: CountComments, ExcludedMethods. # ExcludedMethods: refine Metrics/BlockLength: Max: 27 # Offense count: 1 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 186 # Offense count: 3 Metrics/CyclomaticComplexity: Max: 9 # Offense count: 11 # Configuration parameters: CountComments, ExcludedMethods. Metrics/MethodLength: Max: 24 # Offense count: 2 Metrics/PerceivedComplexity: Max: 9 # Offense count: 8 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces # 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: Exclude: - 'spec/controllers/spree/checkout_controller_spec.rb' - 'spec/controllers/spree/current_order_tracking_spec.rb' - 'spec/controllers/spree/orders_controller_ability_spec.rb' - 'spec/controllers/spree/products_controller_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition Style/ConditionalAssignment: Exclude: - 'app/controllers/spree/products_controller.rb' # Offense count: 1 # Cop supports --auto-correct. Style/ExpandPathArguments: Exclude: - 'bin/rspec' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: always, never Style/FrozenStringLiteralComment: Exclude: - 'bin/r' - 'config/initializers/assets.rb' # Offense count: 8 # Configuration parameters: MinBodyLength. Style/GuardClause: Exclude: - 'app/controllers/spree/checkout_controller.rb' - 'app/controllers/spree/coupon_codes_controller.rb' - 'app/controllers/spree/orders_controller.rb' # Offense count: 1 # Cop supports --auto-correct. Style/IfUnlessModifier: Exclude: - 'app/controllers/spree/checkout_controller.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Exclude: - 'spec/generators/solidus/views/override_generator_spec.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist. # Whitelist: present?, blank?, presence, try, try! Style/SafeNavigation: Exclude: - 'app/controllers/spree/checkout_controller.rb' - 'app/controllers/spree/orders_controller.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: use_perl_names, use_english_names Style/SpecialGlobalVars: Exclude: - 'bin/solidus_compare' # Offense count: 787 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Enabled: false # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: MinSize. # SupportedStyles: percent, brackets Style/SymbolArray: EnforcedStyle: brackets # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline. # SupportedStylesForMultiline: comma, consistent_comma, no_comma Style/TrailingCommaInArguments: Exclude: - 'spec/system/free_shipping_promotions_spec.rb' # Offense count: 1 # Cop supports --auto-correct. Style/WhileUntilModifier: Exclude: - 'spec/controllers/spree/checkout_controller_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, MinSize, WordRegex. # SupportedStyles: percent, brackets Style/WordArray: Exclude: - 'spec/controllers/spree/checkout_controller_spec.rb'