rspec/rules/S2302/description.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

5 lines
322 B
Plaintext

Because parameter names could be changed during refactoring, they should not be spelled out literally in strings. Instead, use ``++nameof()++``, and the string that's output will always be correct.
This rule raises an issue when a string in the ``++throw++`` statement contains the name of one of the method parameters.