Fix Lint/UnusedMethodArgument

This commit is contained in:
Luis Ramos
2020-10-30 16:21:16 +00:00
parent 40f8c785a2
commit bf5fcde885
2 changed files with 2 additions and 9 deletions

View File

@@ -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:

View File

@@ -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, [