We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is incorrectly raising CC0022:
CC0022
using (new SomeDisposable()) { }
It shouldn't, as the object created from SomeDisposable will disposed. The analyzer works as expected when the value is assigned, like so:
SomeDisposable
using (var d = new SomeDisposable()) { }
The text was updated successfully, but these errors were encountered:
9522928
Merge pull request #327 from ElemarJR/FixCC0022
12b7211
Ignoring disposable objects created in using statements (closes #319)
Ignoring disposable objects created in using statements (closes code-…
423d7d3
…cracker#319)
ElemarJR
No branches or pull requests
This is incorrectly raising
CC0022
:It shouldn't, as the object created from
SomeDisposable
will disposed. The analyzer works as expected when the value is assigned, like so:The text was updated successfully, but these errors were encountered: