15 writes to Severity
Microsoft.Build (15)
BuildCheck\API\CheckConfiguration.cs (2)
24
Severity
= CheckResultSeverity.None
73
Severity
= TryExtractSeverity(configDictionary),
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
18
new CheckConfiguration() { RuleId = RuleId,
Severity
= CheckResultSeverity.Warning });
BuildCheck\Checks\DoubleWritesCheck.cs (1)
26
new CheckConfiguration() {
Severity
= CheckResultSeverity.Warning });
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
18
new CheckConfiguration() { RuleId = RuleId,
Severity
= CheckResultSeverity.Warning });
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
24
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.None, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
18
new CheckConfiguration() { RuleId = RuleId,
Severity
= CheckResultSeverity.Warning });
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
17
new CheckConfiguration() { RuleId = RuleId,
Severity
= CheckResultSeverity.Warning });
BuildCheck\Checks\TargetFrameworkUnexpectedCheck.cs (1)
18
new CheckConfiguration() { RuleId = RuleId,
Severity
= CheckResultSeverity.Warning });
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
25
new CheckConfiguration() {
Severity
= CheckResultSeverity.Error });
12 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
);