# This configuration was generated by # `rubocop --auto-gen-config` # on 2022-09-14 16:19:15 UTC using RuboCop version 1.36.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 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. # Include: **/*.gemfile, **/Gemfile, **/gems.rb Bundler/OrderedGems: Exclude: - 'Gemfile' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'solidus_product_assembly.gemspec' # Offense count: 1 # Configuration parameters: Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: - 'solidus_product_assembly.gemspec' # Offense count: 21 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: with_first_argument, with_fixed_indentation Layout/ArgumentAlignment: Exclude: - 'app/decorators/models/solidus_product_assembly/spree/product_decorator.rb' - 'app/decorators/models/solidus_product_assembly/spree/shipment_decorator.rb' - 'app/models/spree/assemblies_part.rb' - 'app/overrides/add_admin_product_form_fields.rb' - 'app/overrides/add_admin_tabs.rb' - 'app/overrides/add_line_item_description.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyleAlignWith, Severity. # SupportedStylesAlignWith: keyword, variable, start_of_line Layout/EndAlignment: Exclude: - 'db/migrate/20091029165620_add_parts_fields_to_products.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. Layout/ExtraSpacing: Exclude: - 'solidus_product_assembly.gemspec' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Width, AllowedPatterns, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'spec/models/spree/shipment_spec.rb' # Offense count: 8 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: aligned, indented, indented_relative_to_receiver Layout/MultilineMethodCallIndentation: Exclude: - 'app/decorators/models/solidus_product_assembly/spree/product_decorator.rb' - 'spec/models/spree/order_contents_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. # SupportedStylesForExponentOperator: space, no_space Layout/SpaceAroundOperators: Exclude: - 'solidus_product_assembly.gemspec' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideBlockBraces: Exclude: - 'spec/models/spree/shipment_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowInHeredoc. Layout/TrailingWhitespace: Exclude: - 'spec/features/checkout_spec.rb' # Offense count: 1 # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. Lint/AmbiguousBlockAssociation: Exclude: - 'spec/models/spree/order_inventory_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Lint/AmbiguousOperator: Exclude: - 'app/views/spree/api/line_items/show.v1.rabl' # Offense count: 1 Lint/MissingSuper: Exclude: - 'app/models/spree/order_inventory_assembly.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Lint/RedundantCopDisableDirective: Exclude: - 'lib/generators/solidus_product_assembly/install/install_generator.rb' # Offense count: 3 Lint/ShadowingOuterLocalVariable: Exclude: - 'app/decorators/models/solidus_product_assembly/spree/shipment_decorator.rb' - 'lib/tasks/spree2_upgrade.rake' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Performance/BigDecimalWithNumericArgument: Exclude: - 'spec/models/spree/inventory_unit_spec.rb' # Offense count: 3 # This cop supports unsafe autocorrection (--autocorrect-all). Performance/TimesMap: Exclude: - 'app/decorators/models/solidus_product_assembly/spree/stock/inventory_unit_builder_decorator.rb' - 'spec/models/spree/shipment_spec.rb' # Offense count: 4 RSpec/AnyInstance: Exclude: - 'spec/features/admin/return_items_spec.rb' - 'spec/models/spree/stock/availability_validator_spec.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). RSpec/Capybara/CurrentPathExpectation: Exclude: - 'spec/features/checkout_spec.rb' # Offense count: 42 # Configuration parameters: Prefixes, AllowedPatterns. # Prefixes: when, with, without RSpec/ContextWording: Exclude: - 'spec/features/admin/orders_spec.rb' - 'spec/features/checkout_spec.rb' - 'spec/models/spree/assemblies_part_spec.rb' - 'spec/models/spree/inventory_unit_spec.rb' - 'spec/models/spree/line_item_spec.rb' - 'spec/models/spree/order_contents_spec.rb' - 'spec/models/spree/order_inventory_assembly_spec.rb' - 'spec/models/spree/order_inventory_spec.rb' - 'spec/models/spree/shipment_spec.rb' - 'spec/models/spree/stock/availability_validator_spec.rb' - 'spec/models/spree/stock/coordinator_spec.rb' - 'spec/models/spree/stock/inventory_unit_builder_spec.rb' - 'spec/models/spree/variant_spec.rb' - 'spec/support/shared_contexts/order_with_bundle.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). RSpec/EmptyLineAfterFinalLet: Exclude: - 'spec/models/spree/shipment_spec.rb' # Offense count: 9 RSpec/ExpectInHook: Exclude: - 'spec/features/checkout_spec.rb' - 'spec/models/spree/line_item_spec.rb' # Offense count: 14 # Configuration parameters: AssignmentOnly. RSpec/InstanceVariable: Exclude: - 'spec/models/spree/product_spec.rb' # Offense count: 14 RSpec/LetSetup: Exclude: - 'spec/features/checkout_spec.rb' - 'spec/models/spree/order_contents_spec.rb' - 'spec/models/spree/order_inventory_spec.rb' - 'spec/models/spree/shipment_spec.rb' - 'spec/models/spree/stock/availability_validator_spec.rb' - 'spec/models/spree/stock/coordinator_spec.rb' # Offense count: 9 # Configuration parameters: . # SupportedStyles: have_received, receive RSpec/MessageSpies: EnforcedStyle: receive # Offense count: 19 RSpec/MultipleExpectations: Max: 14 # Offense count: 23 # Configuration parameters: AllowSubject. RSpec/MultipleMemoizedHelpers: Max: 10 # Offense count: 23 # Configuration parameters: IgnoreSharedExamples. RSpec/NamedSubject: Exclude: - 'spec/models/spree/assemblies_part_spec.rb' - 'spec/models/spree/inventory_unit_spec.rb' - 'spec/models/spree/order_contents_spec.rb' - 'spec/models/spree/order_inventory_assembly_spec.rb' - 'spec/models/spree/order_inventory_spec.rb' - 'spec/models/spree/product_spec.rb' - 'spec/models/spree/stock/availability_validator_spec.rb' - 'spec/models/spree/stock/coordinator_spec.rb' - 'spec/models/spree/stock/inventory_unit_builder_spec.rb' # Offense count: 2 # Configuration parameters: AllowedGroups. RSpec/NestedGroups: Max: 5 # Offense count: 3 # This cop supports safe autocorrection (--autocorrect). RSpec/ScatteredLet: Exclude: - 'spec/models/spree/order_inventory_spec.rb' # Offense count: 2 RSpec/StubbedMock: Exclude: - 'spec/models/spree/line_item_spec.rb' # Offense count: 2 # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. RSpec/VerifiedDoubles: Exclude: - 'spec/models/spree/line_item_spec.rb' - 'spec/models/spree/stock/availability_validator_spec.rb' # Offense count: 1 # Configuration parameters: Include. # Include: db/migrate/*.rb Rails/CreateTableWithTimestamps: Exclude: - 'db/migrate/20091028152124_add_many_to_many_relation_to_products.rb' # Offense count: 2 # Configuration parameters: IgnoreScopes, Include. # Include: app/models/**/*.rb Rails/InverseOf: Exclude: - 'app/models/spree/assemblies_part.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Rails/RedundantForeignKey: Exclude: - 'app/models/spree/assemblies_part.rb' # Offense count: 8 # Configuration parameters: ForbiddenMethods, AllowedMethods. # ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all Rails/SkipsModelValidations: Exclude: - 'lib/tasks/spree2_upgrade.rake' - 'spec/features/admin/return_items_spec.rb' - 'spec/features/checkout_spec.rb' - 'spec/models/spree/line_item_spec.rb' - 'spec/models/spree/order_contents_spec.rb' - 'spec/models/spree/order_inventory_spec.rb' - 'spec/models/spree/shipment_spec.rb' - 'spec/models/spree/stock/coordinator_spec.rb' # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Exclude: - 'app/controllers/spree/admin/parts_controller.rb' - 'app/models/spree/calculator/returns/assemblies_default_refund_amount.rb' # Offense count: 3 # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. Style/GuardClause: Exclude: - 'app/decorators/models/solidus_product_assembly/spree/line_item_decorator.rb' - 'app/decorators/models/solidus_product_assembly/spree/stock/inventory_validator_decorator.rb' - 'app/models/spree/order_inventory_assembly.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Style/OrAssignment: Exclude: - 'app/models/spree/order_inventory_assembly.rb' # Offense count: 6 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. # URISchemes: http, https Layout/LineLength: Max: 146