rubocop: Drop "c1" and "c2" from Naming/MethodParameterName allowlist

This commit is contained in:
Issy Long 2023-03-09 21:54:37 +00:00
parent cb5e8298a2
commit f1ab720000
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 5 additions and 7 deletions

View File

@ -191,8 +191,6 @@ Naming/MethodParameterName:
[
"a",
"b",
"c1",
"c2",
"e",
"f",
"o",

View File

@ -214,13 +214,13 @@ module RuboCop
end
# 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
problem "`#{format_component(c1)}` (line #{line_number(c1)}) " \
"should be put before `#{format_component(c2)}` " \
"(line #{line_number(c2)})" do |corrector|
reorder_components(corrector, c1, c2)
problem "`#{format_component(component1)}` (line #{line_number(component1)}) " \
"should be put before `#{format_component(component2)}` " \
"(line #{line_number(component2)})" do |corrector|
reorder_components(corrector, component1, component2)
end
end