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

Skipping analyzers when compiling in release mode #3208

Merged
merged 1 commit into from
Jul 30, 2018

Conversation

fabiocav
Copy link
Member

@fabiocav fabiocav commented Jul 30, 2018

Addresses #999

@fabiocav fabiocav requested a review from mathewc July 30, 2018 18:39

if (compilation.Options.OptimizationLevel == OptimizationLevel.Debug)
{
var compilationWithAnalyzers = compilation.WithAnalyzers(GetAnalyzers());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the WithAnalyzers call in GetDiagnostics()? When is that path exercised?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is only exercised in active development scenarios (on non-emit paths), so we want to keep that information.

@fabiocav fabiocav merged commit c31ff2d into Azure:v1.x Jul 30, 2018
@fabiocav fabiocav deleted the analyzerskip branch July 30, 2018 21:33
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