rspec/rules/S927/why-dotnet.adoc
kevin.hinz d9656053c0
Modify rule S927: Update rule description (#3599)
Suggested change by the Docs Squad:
- specify pronoun to clarify what "it" is
- fix plural possessives
2024-02-02 17:36:43 +01:00

12 lines
522 B
Plaintext

== Why is this an issue?
Parameters are part of the {methodSignatureLine}[method signature] and its identity.
Implementing a method from an interface, a base class, or a partial method and changing one of its parameters' names will confuse and impact the method's readability.
include::{noncompliantCode}[]
To avoid any ambiguity in the code, a parameter's name should match the initial declaration, whether its initial declaration is from an interface, a base class, or a partial method.
include::{compliantCode}[]