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

Fix ResourceUsageAnalyzer to account for new overloads #2158

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Mar 5, 2019

This analyzer is trying to prevent calls to SR.Format(SR.Something), which should just be simplified to SR.Something. But it's buggy and isn't doing so. Also, I'm adding some new SR overloads to also support culture, and the way the analyzer is currently coded causes it to fire incorrectly. This just simplifies the analyzer, eliminating the false positives.

cc: @tarekgh
Contributes to https://github.com/dotnet/corefx/issues/35001

This analyzer is trying to prevent calls to SR.Format(SR.Something), which should just be simplified to SR.Something.  I'm adding some new SR overloads to also support culture, and the way the analyzer is currently coded causes it to fire incorrectly.  This just simplifies the analyzer, eliminating the false positives.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants