diff --git a/.rubocop.yml b/.rubocop.yml index 6207a64..4714d8d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,2 +1,4 @@ +inherit_from: .rubocop_todo.yml + require: - solidus_dev_support/rubocop diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 0000000..e2a9cf8 --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,71 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2020-07-24 11:17:48 +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: EnforcedStyleAlignWith, AutoCorrect, Severity. +# SupportedStylesAlignWith: keyword, variable, start_of_line +Layout/EndAlignment: + Exclude: + - 'app/decorators/models/solidus_easypost/spree/address_decorator.rb' + +# Offense count: 1 +# Cop supports --auto-correct. +Lint/RedundantCopDisableDirective: + Exclude: + - 'lib/generators/solidus_easypost/install/install_generator.rb' + +# Offense count: 1 +# Cop supports --auto-correct. +RSpec/EmptyLineAfterFinalLet: + Exclude: + - 'spec/models/solidus_easypost/return_authorization_spec.rb' + +# Offense count: 3 +# Configuration parameters: . +# SupportedStyles: have_received, receive +RSpec/MessageSpies: + EnforcedStyle: receive + +# Offense count: 1 +RSpec/MultipleExpectations: + Max: 3 + +# Offense count: 22 +# Configuration parameters: IgnoreSharedExamples. +RSpec/NamedSubject: + Exclude: + - 'spec/models/solidus_easypost/return_authorization_spec.rb' + - 'spec/models/spree/address_spec.rb' + - 'spec/models/spree/shipment_spec.rb' + - 'spec/models/spree/shipping_rate_spec.rb' + - 'spec/models/spree/stock/estimator_spec.rb' + - 'spec/models/spree/stock/package_spec.rb' + - 'spec/models/spree/stock_location_spec.rb' + +# Offense count: 4 +RSpec/NestedGroups: + Max: 5 + +# Offense count: 2 +RSpec/ScatteredSetup: + Exclude: + - 'spec/models/solidus_easypost/return_authorization_spec.rb' + +# Offense count: 1 +# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. +RSpec/VerifiedDoubles: + Exclude: + - 'spec/models/spree/stock/estimator_spec.rb' + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. +# URISchemes: http, https +Metrics/LineLength: + Max: 137