29 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 (13)
BuildCheck\API\CheckConfiguration.cs (3)
21public static CheckConfiguration Default { get; } = new() 27public static CheckConfiguration Null { get; } = new(); 70internal static CheckConfiguration Create(Dictionary<string, string>? configDictionary) => new()
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
18new CheckConfiguration() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\DoubleWritesCheck.cs (1)
26new CheckConfiguration() { Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
18new CheckConfiguration() { RuleId = RuleId, 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.None, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
18new CheckConfiguration() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
17new 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)
28new 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());
51 references to CheckConfiguration
Microsoft.Build (35)
BuildCheck\API\CheckConfiguration.cs (5)
21public static CheckConfiguration Default { get; } = new() 27public 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 (3)
27CheckConfiguration defaultConfiguration, 51CheckConfiguration defaultConfiguration) 93public CheckConfiguration DefaultConfiguration { get; }
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
246CheckConfiguration[] userEditorConfigs = 304CheckConfiguration[] userEditorConfigs =
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (2)
26new(string.Empty, CheckConfiguration.Default.EvaluationCheckScope!.Value, 27CheckConfiguration.Default.Severity!.Value);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
82IReadOnlyList<CheckConfiguration> editorConfigs)
BuildCheck\Infrastructure\ConfigurationProvider.cs (19)
23private readonly ConcurrentDictionary<string, CheckConfiguration> _checkConfiguration = new ConcurrentDictionary<string, CheckConfiguration>(StringComparer.InvariantCultureIgnoreCase); 109public CheckConfiguration[] GetUserConfigurations( 126CheckConfiguration[] userConfigs, 229internal CheckConfiguration GetUserConfiguration(string projectFullPath, string ruleId) 233var editorConfigValue = _checkConfiguration.GetOrAdd(cacheKey, (key) => 235CheckConfiguration? editorConfig = CheckConfiguration.Null; 241editorConfig = CheckConfiguration.Create(config); 262CheckConfiguration defaultConfig, 263CheckConfiguration editorConfig) 272CheckConfiguration defaultConfig) 276CheckConfiguration editorConfigValue, 277CheckConfiguration defaultValue, 278Func<CheckConfiguration, T?> propertyGetter) where T : struct 281EnsureNonNull(propertyGetter(CheckConfiguration.Default)); 283private CheckResultSeverity GetSeverityValue(CheckConfiguration editorConfigValue, CheckConfiguration defaultValue) 294resultSeverity ??= defaultValue.Severity ?? EnsureNonNull(CheckConfiguration.Default.Severity);
BuildCheck\Infrastructure\CustomConfigurationData.cs (1)
12/// 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()