-
Notifications
You must be signed in to change notification settings - Fork 420
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
Support for <RunAnalyzers />
and <RunAnalyzersDuringLiveAnalysis />
#1739
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know about these properties before this PR. =) https://docs.microsoft.com/en-us/visualstudio/code-quality/disable-code-analysis?view=vs-2019#net-framework-projects
This PR adds support for honoring
<RunAnalyzers />
and<RunAnalyzersDuringLiveAnalysis />
settings in csproj files.Note that this is different than the OmniSharp specific global setting to toggle analyzers on/off (in those cases we don't decorate code check services with one that's analyzer-friendly).
Here it's project level and we can toggle this on/off in csproj and get real time response from Omnisharp (via project reload). This is on-par with feature that's already in VS and in command line builds.