Skip to content
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

SA1313 (ParameterNamesMustBeginWithLowerCaseLetter) should ignore matching inherited parameters #1372

Closed
sharwell opened this issue Sep 2, 2015 · 1 comment
Assignees
Milestone

Comments

@sharwell
Copy link
Member

sharwell commented Sep 2, 2015

SA1313 should be suppressed when all of the following conditions are met:

  1. The nth parameter Xn of method M does not start with a lowercase letter
  2. M overrides a method M'
  3. The nth parameter X'n of method M' has exactly the same name as Xn

Example:

public interface ISomeType
{
    void Method(int Param1, int Param2, int Param3);
}

public abstract class SomeType : ISomeType
{
    public abstract void Method(
        int Param1,  // OK
        int Param3,  // SA1313
        int param3); // OK
}
@hvanbakel
Copy link
Contributor

Grabbed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants