-
Notifications
You must be signed in to change notification settings - Fork 222
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
Fix S2930: Should report on all classes implementing IDisposable #326
Comments
This is a huge "miss" in my mind. I just tried using SonarAnalyzer.CSharp, and I was surprised that it missed an occurrence of this in my test code. Then I saw that it has the S2930 analyzer, but....it's limited to certain types? I'm curious, is it stated anywhere which types? And why is it limited? |
OK, whoops, just noticed the link from @fmallet - https://jira.sonarsource.com/browse/RSPEC-2930. That's sad that the rule only works on a limited set of types. It should be broadened to any type implementing |
@JasonBock thanks for the feedback! A couple of years ago the rule covered all types that implement |
@JasonBock The suggestion sounds very sensible. However, once implemented, this rule generates a lot of noise. That is particularly bad, because the reported issues are classified as blocker bugs, therefore our bar for quality is very high. |
RSPEC-2930 "IDisposable should be disposed" has artificial limitation to report issues only on certain classes, which should be removed.
Coming from SONARCS-840
The text was updated successfully, but these errors were encountered: