12 writes to Severity
Microsoft.Build (9)
BuildCheck\API\CheckConfiguration.cs (2)
24
Severity
= CheckResultSeverity.None
73
Severity
= TryExtractSeverity(configDictionary),
BuildCheck\Checks\DoubleWritesCheck.cs (1)
26
new CheckConfiguration() {
Severity
= CheckResultSeverity.Warning });
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
18
new CheckConfiguration() {
Severity
= CheckResultSeverity.Suggestion });
BuildCheck\Checks\PreferProjectReferenceCheck.cs (1)
18
new CheckConfiguration() { RuleId = RuleId,
Severity
= CheckResultSeverity.Warning });
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
20
new CheckConfiguration() { RuleId = "BC0201",
Severity
= CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
25
new CheckConfiguration() { RuleId = "BC0202",
Severity
= CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
30
new CheckConfiguration() { RuleId = "BC0203",
Severity
= CheckResultSeverity.Suggestion, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
18
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)
54
if (
Severity
.HasValue &&
Severity
.Value != CheckResultSeverity.Default)
56
return !
Severity
.Value.Equals(CheckResultSeverity.None);
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (1)
27
CheckConfiguration.Default.
Severity
!.Value);
BuildCheck\Infrastructure\CheckWrapper.cs (3)
60
defaultSeverity: (checkRule.DefaultConfiguration.
Severity
??
89
if (editorConfigs[idx].
Severity
!= null)
91
ruleTelemetryData.ExplicitSeverities.Add(editorConfigs[idx].
Severity
!.Value.ToDiagnosticSeverity());
BuildCheck\Infrastructure\ConfigurationProvider.cs (5)
289
if (editorConfigValue.
Severity
!= null && editorConfigValue.
Severity
!= CheckResultSeverity.Default)
291
resultSeverity = editorConfigValue.
Severity
;
294
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);