25 instantiations of CheckConfiguration
CustomCheck (2)
Check1.cs (1)
17new CheckConfiguration());
Check2.cs (1)
17new CheckConfiguration());
CustomCheck2 (1)
Check3.cs (1)
17new CheckConfiguration());
ErrorCustomCheck (3)
ErrorOnInitializeCheck.cs (1)
18new CheckConfiguration());
ErrorOnRegisteredAction.cs (1)
18new CheckConfiguration());
ErrorWhenRegisteringActions.cs (1)
18new CheckConfiguration());
Microsoft.Build (9)
BuildCheck\API\CheckConfiguration.cs (3)
22public static CheckConfiguration Default { get; } = new() 28public static CheckConfiguration Null { get; } = new(); 70internal static CheckConfiguration Create(Dictionary<string, string>? configDictionary) => new()
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 (10)
BuildCheckManagerProviderTests.cs (1)
99new CheckConfiguration());
ConfigurationProvider_Tests.cs (2)
228CheckConfiguration checkConfiguration = new CheckConfiguration() 233CheckConfiguration defaultValue = new CheckConfiguration()
TaskInvocationAnalysisDataTests.cs (1)
27new CheckConfiguration() { Severity = CheckResultSeverity.Warning });
TestAssets\CustomCheck\Check1.cs (1)
17new CheckConfiguration());
TestAssets\CustomCheck\Check2.cs (1)
17new CheckConfiguration());
TestAssets\CustomCheck2\Check3.cs (1)
17new CheckConfiguration());
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (1)
18new CheckConfiguration());
TestAssets\ErrorCustomCheck\ErrorOnRegisteredAction.cs (1)
18new CheckConfiguration());
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (1)
18new CheckConfiguration());
50 references to CheckConfiguration
Microsoft.Build (34)
BuildCheck\API\CheckConfiguration.cs (5)
22public static CheckConfiguration Default { get; } = new() 28public static CheckConfiguration Null { get; } = new(); 64/// Creates a <see cref="CheckConfiguration"/> object based on the provided configuration dictionary. 69/// <returns>A new instance of <see cref="CheckConfiguration"/> with the specified settings.</returns> 70internal static CheckConfiguration Create(Dictionary<string, string>? configDictionary) => new()
BuildCheck\API\CheckRule.cs (2)
18CheckConfiguration defaultConfiguration) 58public CheckConfiguration DefaultConfiguration { get; }
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
232CheckConfiguration[] userEditorConfigs = 282CheckConfiguration[] userEditorConfigs =
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (2)
27new(string.Empty, CheckConfiguration.Default.EvaluationCheckScope!.Value, 28CheckConfiguration.Default.Severity!.Value);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
84IReadOnlyList<CheckConfiguration> editorConfigs)
BuildCheck\Infrastructure\ConfigurationProvider.cs (19)
24private readonly ConcurrentDictionary<string, CheckConfiguration> _checkConfiguration = new ConcurrentDictionary<string, CheckConfiguration>(StringComparer.InvariantCultureIgnoreCase); 110public CheckConfiguration[] GetUserConfigurations( 127CheckConfiguration[] userConfigs, 230internal CheckConfiguration GetUserConfiguration(string projectFullPath, string ruleId) 234var editorConfigValue = _checkConfiguration.GetOrAdd(cacheKey, (key) => 236CheckConfiguration? editorConfig = CheckConfiguration.Null; 242editorConfig = CheckConfiguration.Create(config); 263CheckConfiguration defaultConfig, 264CheckConfiguration editorConfig) 273CheckConfiguration defaultConfig) 277CheckConfiguration editorConfigValue, 278CheckConfiguration defaultValue, 279Func<CheckConfiguration, T?> propertyGetter) where T : struct 282EnsureNonNull(propertyGetter(CheckConfiguration.Default)); 284private CheckResultSeverity GetSeverityValue(CheckConfiguration editorConfigValue, CheckConfiguration defaultValue) 295resultSeverity ??= defaultValue.Severity ?? EnsureNonNull(CheckConfiguration.Default.Severity);
BuildCheck\Infrastructure\CustomConfigurationData.cs (1)
16/// The configuration data that is recognized by the infrastructure is passed as <see cref="CheckConfiguration"/>.
BuildCheck\Infrastructure\IConfigurationProvider.cs (2)
11CheckConfiguration[] GetUserConfigurations( 20CheckConfiguration[] userConfigs,
Microsoft.Build.BuildCheck.UnitTests (16)
BuildCheckManagerProviderTests.cs (2)
75public CheckConfigurationEffective[] GetMergedConfigurations(CheckConfiguration[] userConfigs, Check check) => []; 77public CheckConfiguration[] GetUserConfigurations(string projectFullPath, IReadOnlyList<string> ruleIds) => [];
CheckConfiguration_Test.cs (11)
17var buildConfig = CheckConfiguration.Create(null); 27var buildConfig = CheckConfiguration.Create(new Dictionary<string, string>()); 52var buildConfig = CheckConfiguration.Create(config); 72var buildConfig = CheckConfiguration.Create(config); 92var buildConfig = CheckConfiguration.Create(config); 113CheckConfiguration.Create(config);
ConfigurationProvider_Tests.cs (3)
115var buildConfig = configurationProvider.GetUserConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 228CheckConfiguration checkConfiguration = new CheckConfiguration() 233CheckConfiguration defaultValue = new CheckConfiguration()