-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SA1315: ParametersShouldMatchInheritedNames #1949
Comments
This is a "duplicate" to CA1725 of FxCop (https://msdn.microsoft.com/en-us/library/ms182251.aspx). |
💭 Maybe treat this as a duplicate of dotnet/roslyn-analyzers#457, but then we don't have control over the release process. Or we could implement it as a new StyleCop rule and contribute the result back for the FxCop port. |
Looks like the FxCop port to Roslyn is looking back at us as well:
|
Let's do it :). You can assign the diagnostic part to me if we agree to do it. I will look into the renaming part of the fix afterwards. |
👍 I'd say we go for it. |
👍 |
Im grabbing this. |
Based on the work of @pdelvo (#2015) I created an implementation for roslyn-analyzers (dotnet/roslyn-analyzers#911). If we decide to include it in StyleCop analyzers as well, our implementation should match the one in roslyn-analyzers. I've marked this as needs discussion again to determine if we want to include it. |
Category: Naming
Title: Parameters should match inherited names
Description: When a method overrides a method from a base class, or implements an interface method, the parameter names of the overriding method should match the names in the base definition.
This rule is an enforcement of the special case added to SA1313 in #1372.
The text was updated successfully, but these errors were encountered: