11 writes to Severity
Microsoft.Build (8)
BuildCheck\API\CheckConfiguration.cs (2)
25
Severity
= CheckResultSeverity.None
74
Severity
= TryExtractSeverity(configDictionary),
BuildCheck\Checks\DoubleWritesCheck.cs (1)
29
new CheckConfiguration() {
Severity
= CheckResultSeverity.Warning });
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
18
new CheckConfiguration() {
Severity
= CheckResultSeverity.Suggestion });
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
22
new CheckConfiguration() {
Severity
= CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
27
new CheckConfiguration() {
Severity
= CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
32
new CheckConfiguration() {
Severity
= CheckResultSeverity.Suggestion, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
22
new CheckConfiguration() { RuleId = RuleId,
Severity
= CheckResultSeverity.Warning });
Microsoft.Build.BuildCheck.UnitTests (3)
ConfigurationProvider_Tests.cs (2)
230
Severity
= checkResultSeverity
235
Severity
= CheckResultSeverity.Warning
TaskInvocationAnalysisDataTests.cs (1)
28
new CheckConfiguration() {
Severity
= CheckResultSeverity.Warning });
17 references to Severity
Microsoft.Build (12)
BuildCheck\API\CheckConfiguration.cs (3)
55
if (
Severity
.HasValue &&
Severity
.Value != CheckResultSeverity.Default)
57
return !
Severity
.Value.Equals(CheckResultSeverity.None);
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (1)
28
CheckConfiguration.Default.
Severity
!.Value);
BuildCheck\Infrastructure\CheckWrapper.cs (3)
62
defaultSeverity: (checkRule.DefaultConfiguration.
Severity
??
91
if (editorConfigs[idx].
Severity
!= null)
93
ruleTelemetryData.ExplicitSeverities.Add(editorConfigs[idx].
Severity
!.Value.ToDiagnosticSeverity());
BuildCheck\Infrastructure\ConfigurationProvider.cs (5)
290
if (editorConfigValue.
Severity
!= null && editorConfigValue.
Severity
!= CheckResultSeverity.Default)
292
resultSeverity = editorConfigValue.
Severity
;
295
resultSeverity ??= defaultValue.
Severity
?? EnsureNonNull(CheckConfiguration.Default.
Severity
);
Microsoft.Build.BuildCheck.UnitTests (5)
CheckConfiguration_Test.cs (4)
19
buildConfig.
Severity
.ShouldBeNull();
29
buildConfig.
Severity
.ShouldBeNull();
55
buildConfig.
Severity
.ShouldBe(expected);
98
buildConfig.
Severity
.ShouldBeNull();
ConfigurationProvider_Tests.cs (1)
120
buildConfig.
Severity
.ShouldBe(CheckResultSeverity.Error);