rspec/rules/S2234/description.adoc

2 lines
320 B
Plaintext
Raw Permalink Normal View History

2020-06-30 12:48:07 +02:00
When the names of parameters in a method call match the names of the method arguments, it contributes to clearer, more readable code. However, when the names match, but are passed in a different order than the method arguments, it indicates a mistake in the parameter order which will likely lead to unexpected results.