提交 382f4531 编写于 作者: M Manish Vasani

Address feedback

上级 1ea13bd5
......@@ -23,10 +23,9 @@ internal abstract class AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer
// The NotConfigurable custom tag ensures that user can't turn this diagnostic into a warning / error via
// ruleset editor or solution explorer. Setting messageFormat to empty string ensures that we won't display
// this diagnostic in the preview pane header.
// Setting category to "Compiler" ensures we always run this analyzer even when user has turned off analyzer execution for the project.
private static readonly DiagnosticDescriptor s_fixableIdDescriptor =
new DiagnosticDescriptor(DiagnosticFixableId,
title: "", messageFormat: "", category: DiagnosticCategory.Compiler,
title: "", messageFormat: "", category: "",
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
customTags: WellKnownDiagnosticTags.NotConfigurable);
......
......@@ -63,7 +63,8 @@ internal sealed class VisualStudioProject
// Actual property values for 'RunAnalyzers' and 'RunAnalyzersDuringLiveAnalysis' properties from the project file.
// Both these properties can be used to configure running analyzers, with RunAnalyzers overriding RunAnalyzersDuringLiveAnalysis.
private bool? _runAnalyzersPropertyValue, _runAnalyzersDuringLiveAnalysisPropertyValue;
private bool? _runAnalyzersPropertyValue;
private bool? _runAnalyzersDuringLiveAnalysisPropertyValue;
// Effective boolean value to determine if analyzers should be executed based on _runAnalyzersPropertyValue and _runAnalyzersDuringLiveAnalysisPropertyValue.
private bool _runAnalyzers = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册