rspec/rules/S1536/description.adoc
2020-06-30 17:16:12 +02:00

2 lines
310 B
Plaintext

Function arguments should all have different names to prevent any ambiguity. Indeed, if arguments have the same name, the last duplicated argument hides all the previous arguments with the same name. This hiding makes no sense, reduces understandability and maintainability, and obviously can be error prone.