diff --git a/.reek.yml b/.reek.yml index 6e9a497..ec385e5 100644 --- a/.reek.yml +++ b/.reek.yml @@ -8,6 +8,9 @@ detectors: InstanceVariableAssumption: enabled: false + TooManyInstanceVariables: + exclude: + - GiftsController + exclude_paths: - db/migrate - - app/controllers/gifts_controller.rb diff --git a/.rubocop.yml b/.rubocop.yml index f6319af..b5edeb4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,7 +8,6 @@ AllCops: - "db/schema.rb" - "vendor/bundle/**/*" - "db/migrate/*" - - "test/factories/*" # Layout cops @@ -35,6 +34,7 @@ Metrics/BlockLength: - config/**/* - spec/**/* - app/admin/**/* + - test/factories/* Metrics/BlockNesting: Max: 4 diff --git a/app/controllers/gifts_controller.rb b/app/controllers/gifts_controller.rb index 1255f4b..3e240bf 100644 --- a/app/controllers/gifts_controller.rb +++ b/app/controllers/gifts_controller.rb @@ -16,7 +16,6 @@ def index def show @gift = Gift.find(params[:id]) - # @gift = Gift.includes(:gift_products, :products).find(params[:id]) end private