-
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
SA1126: PrefixCallsCorrectly #59
Comments
It seems like this diagnostic is not needed now that we are using Roslyn for analysis (its |
I am planning to close this issue as wontfix because it is so vaguely worded. If we are in agreement on this, any specific functionality originally part of it can be proposed and implemented as part of new well-defined rules. |
Sounds like a good plan. As far as I could determine, the following scenarios should still be addressed:
|
@vweijsters How might those scenarios be addressed? 💭 For the second one, all of our analyzers currently assume that the intended target is the method that was actually called. That seems to be a reasonable assumption for a style checker. |
Is SA1126 the rule responsible for enforcing folks prefix It's fantastic for when you write thread-safe code because it makes it abundantly clear whether you're reading or modifying instance state, or calling an instance method that might. Please, let's support this rule. |
@AArnott That would be SA1101, and it's been available with a code fix since Alpha 3. In this project we actually have the severity for violations set to Error. |
I see. In that case, I agree with not implementing this diagnostic. |
Add README.md
@sharwell - is there currently a rule for enforcing that a reference to a class-level member is prefixed with the class's name? This would be analogous to SA1101, but for For example, if I define |
@naamunds I am not aware of any such rule. |
http://www.stylecop.com/docs/SA1126.html
The text was updated successfully, but these errors were encountered: