mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix Lint/UnusedMethodArgument
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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, [
|
||||
|
||||
Reference in New Issue
Block a user