rubocop: Drop "c1" and "c2" from Naming/MethodParameterName allowlist
This commit is contained in:
parent
cb5e8298a2
commit
f1ab720000
@ -191,8 +191,6 @@ Naming/MethodParameterName:
|
|||||||
[
|
[
|
||||||
"a",
|
"a",
|
||||||
"b",
|
"b",
|
||||||
"c1",
|
|
||||||
"c2",
|
|
||||||
"e",
|
"e",
|
||||||
"f",
|
"f",
|
||||||
"o",
|
"o",
|
||||||
|
|||||||
@ -214,13 +214,13 @@ module RuboCop
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Method to report and correct component precedence violations.
|
# Method to report and correct component precedence violations.
|
||||||
def component_problem(c1, c2)
|
def component_problem(component1, component2)
|
||||||
return if tap_style_exception? :components_order_exceptions
|
return if tap_style_exception? :components_order_exceptions
|
||||||
|
|
||||||
problem "`#{format_component(c1)}` (line #{line_number(c1)}) " \
|
problem "`#{format_component(component1)}` (line #{line_number(component1)}) " \
|
||||||
"should be put before `#{format_component(c2)}` " \
|
"should be put before `#{format_component(component2)}` " \
|
||||||
"(line #{line_number(c2)})" do |corrector|
|
"(line #{line_number(component2)})" do |corrector|
|
||||||
reorder_components(corrector, c1, c2)
|
reorder_components(corrector, component1, component2)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user