11 writes to Severity
Microsoft.Build (8)
BuildCheck\API\CheckConfiguration.cs (2)
25Severity = CheckResultSeverity.None 74Severity = TryExtractSeverity(configDictionary),
BuildCheck\Checks\DoubleWritesCheck.cs (1)
29new CheckConfiguration() { Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
18new CheckConfiguration() { Severity = CheckResultSeverity.Suggestion });
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
22new CheckConfiguration() { Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly }); 27new CheckConfiguration() { Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly }); 32new CheckConfiguration() { Severity = CheckResultSeverity.Suggestion, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
22new 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)
55if (Severity.HasValue && Severity.Value != CheckResultSeverity.Default) 57return !Severity.Value.Equals(CheckResultSeverity.None);
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (1)
28CheckConfiguration.Default.Severity!.Value);
BuildCheck\Infrastructure\CheckWrapper.cs (3)
62defaultSeverity: (checkRule.DefaultConfiguration.Severity ?? 91if (editorConfigs[idx].Severity != null) 93ruleTelemetryData.ExplicitSeverities.Add(editorConfigs[idx].Severity!.Value.ToDiagnosticSeverity());
BuildCheck\Infrastructure\ConfigurationProvider.cs (5)
290if (editorConfigValue.Severity != null && editorConfigValue.Severity != CheckResultSeverity.Default) 292resultSeverity = editorConfigValue.Severity; 295resultSeverity ??= 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);