12 writes to Severity
Microsoft.Build (9)
BuildCheck\API\CheckConfiguration.cs (2)
24Severity = CheckResultSeverity.None 73Severity = TryExtractSeverity(configDictionary),
BuildCheck\Checks\DoubleWritesCheck.cs (1)
26new CheckConfiguration() { Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
18new CheckConfiguration() { Severity = CheckResultSeverity.Suggestion });
BuildCheck\Checks\PreferProjectReferenceCheck.cs (1)
18new CheckConfiguration() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
20new CheckConfiguration() { RuleId = "BC0201", Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly }); 25new CheckConfiguration() { RuleId = "BC0202", Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly }); 30new CheckConfiguration() { RuleId = "BC0203", Severity = CheckResultSeverity.Suggestion, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
18new CheckConfiguration() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
Microsoft.Build.BuildCheck.UnitTests (3)
ConfigurationProvider_Tests.cs (2)
230Severity = checkResultSeverity 235Severity = CheckResultSeverity.Warning
TaskInvocationAnalysisDataTests.cs (1)
28new CheckConfiguration() { Severity = CheckResultSeverity.Warning });
17 references to Severity
Microsoft.Build (12)
BuildCheck\API\CheckConfiguration.cs (3)
54if (Severity.HasValue && Severity.Value != CheckResultSeverity.Default) 56return !Severity.Value.Equals(CheckResultSeverity.None);
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (1)
27CheckConfiguration.Default.Severity!.Value);
BuildCheck\Infrastructure\CheckWrapper.cs (3)
60defaultSeverity: (checkRule.DefaultConfiguration.Severity ?? 89if (editorConfigs[idx].Severity != null) 91ruleTelemetryData.ExplicitSeverities.Add(editorConfigs[idx].Severity!.Value.ToDiagnosticSeverity());
BuildCheck\Infrastructure\ConfigurationProvider.cs (5)
289if (editorConfigValue.Severity != null && editorConfigValue.Severity != CheckResultSeverity.Default) 291resultSeverity = editorConfigValue.Severity; 294resultSeverity ??= defaultValue.Severity ?? EnsureNonNull(CheckConfiguration.Default.Severity);
Microsoft.Build.BuildCheck.UnitTests (5)
CheckConfiguration_Test.cs (4)
19buildConfig.Severity.ShouldBeNull(); 29buildConfig.Severity.ShouldBeNull(); 55buildConfig.Severity.ShouldBe(expected); 98buildConfig.Severity.ShouldBeNull();
ConfigurationProvider_Tests.cs (1)
120buildConfig.Severity.ShouldBe(CheckResultSeverity.Error);