From bf5fcde88512a2fbd154898c7d466d968706367a Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 30 Oct 2020 16:21:16 +0000 Subject: [PATCH] Fix Lint/UnusedMethodArgument --- .rubocop_todo.yml | 7 ------- .../spree/admin/payment_methods/index.html.haml_spec.rb | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 1d68443df3..18a82e8b40 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -19,13 +19,6 @@ Lint/IneffectiveAccessModifier: - 'app/services/mail_configuration.rb' - 'lib/open_food_network/feature_toggle.rb' -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. -Lint/UnusedMethodArgument: - Exclude: - - 'spec/views/spree/admin/payment_methods/index.html.haml_spec.rb' - # Offense count: 3 # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods. Lint/UselessAccessModifier: diff --git a/spec/views/spree/admin/payment_methods/index.html.haml_spec.rb b/spec/views/spree/admin/payment_methods/index.html.haml_spec.rb index f3ef318323..6a03146fdc 100644 --- a/spec/views/spree/admin/payment_methods/index.html.haml_spec.rb +++ b/spec/views/spree/admin/payment_methods/index.html.haml_spec.rb @@ -9,9 +9,9 @@ describe "spree/admin/payment_methods/index.html.haml" do def new_object_url() "" end - def edit_object_url(object, options = {}) "" end + def edit_object_url(_object, _options = {}) "" end - def object_url(object = nil, options = {}) "" end + def object_url(_object = nil, _options = {}) "" end end assign(:payment_methods, [