6 instantiations of CheckConfigurationEffective
Microsoft.Build (2)
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (1)
26new(string.Empty, CheckConfiguration.Default.EvaluationCheckScope!.Value,
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
264=> new CheckConfigurationEffective(
Microsoft.Build.BuildCheck.UnitTests (4)
CheckConfigurationEffectiveTests.cs (4)
24CheckConfigurationEffective configuration1 = new CheckConfigurationEffective( 29CheckConfigurationEffective configuration2 = new CheckConfigurationEffective( 44CheckConfigurationEffective configuration = new CheckConfigurationEffective( 57new CheckConfigurationEffective(
52 references to CheckConfigurationEffective
CustomCheck (1)
Check1.cs (1)
28var infraData = configurationContext.CheckConfig[0];
Microsoft.Build (43)
BuildCheck\API\ConfigurationContext.cs (3)
14private ConfigurationContext(CustomConfigurationData[] customConfigurationData, CheckConfigurationEffective[] checkConfig) 20internal static ConfigurationContext FromDataEnumeration(CustomConfigurationData[] customConfigurationData, CheckConfigurationEffective[] checkConfig) 33public IReadOnlyList<CheckConfigurationEffective> CheckConfig { get; init; }
BuildCheck\Checks\PropertiesUsageCheck.cs (4)
49var config = configurationContext.CheckConfig.FirstOrDefault(c => c.RuleId == _usedBeforeInitializedRule.Id) 50?? CheckConfigurationEffective.Default; 56?? CheckConfigurationEffective.Default; 62?? CheckConfigurationEffective.Default;
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (13)
134Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 141Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 150Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 158Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 166Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 174Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 182Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 190Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 198Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler) 204Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler) 211Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler) 222CheckConfigurationEffective? commonConfig = checkCallback.Item1.CommonConfig; 223CheckConfigurationEffective[] configPerRule;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
240CheckConfigurationEffective[] configurations;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
238CheckConfigurationEffective[] configPerRule, 249CheckConfigurationEffective config = configPerRule.Length == 1
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (2)
25internal static CheckConfigurationEffective Default { get; } = 40public bool IsSameConfigurationAs(CheckConfigurationEffective? other) =>
BuildCheck\Infrastructure\CheckWrapper.cs (6)
61CheckConfigurationEffective.Default.Severity).ToDiagnosticSeverity()); 71internal CheckConfigurationEffective? CommonConfig { get; private set; } 81IReadOnlyList<CheckConfigurationEffective> effectiveConfigs, 88CheckConfigurationEffective effectiveConfig = effectiveConfigs[Math.Max(idx, effectiveConfigs.Count - 1)]; 120private void AddDiagnostic(CheckConfigurationEffective configurationEffective) 153internal void ReportResult(BuildCheckResult result, ICheckContext checkContext, CheckConfigurationEffective config)
BuildCheck\Infrastructure\ConfigurationProvider.cs (6)
104public CheckConfigurationEffective[] GetMergedConfigurations( 125public CheckConfigurationEffective[] GetMergedConfigurations( 129var configurations = new CheckConfigurationEffective[userConfigs.Length]; 257internal CheckConfigurationEffective GetMergedConfiguration(string projectFullPath, CheckRule checkRule) 260internal CheckConfigurationEffective MergeConfiguration( 269private CheckConfigurationEffective GetMergedConfiguration(
BuildCheck\Infrastructure\IConfigurationProvider.cs (2)
15CheckConfigurationEffective[] GetMergedConfigurations( 19CheckConfigurationEffective[] GetMergedConfigurations(
BuildCheck\OM\BuildCheckDataContext.cs (4)
60private readonly CheckConfigurationEffective[] _configPerRule; 61private readonly Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> _resultHandler; 66CheckConfigurationEffective[] configPerRule, 67Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler,
Microsoft.Build.BuildCheck.UnitTests (8)
BuildCheckManagerProviderTests.cs (2)
73public CheckConfigurationEffective[] GetMergedConfigurations(string projectFullPath, Check check) => []; 75public CheckConfigurationEffective[] GetMergedConfigurations(CheckConfiguration[] userConfigs, Check check) => [];
CheckConfigurationEffectiveTests.cs (3)
24CheckConfigurationEffective configuration1 = new CheckConfigurationEffective( 29CheckConfigurationEffective configuration2 = new CheckConfigurationEffective( 44CheckConfigurationEffective configuration = new CheckConfigurationEffective(
ConfigurationProvider_Tests.cs (1)
238var internalCheck = configurationProvider.MergeConfiguration("ruleId", defaultValue, checkConfiguration);
MockBuildCheckRegistrationContext.cs (1)
57private void ResultHandler(CheckWrapper wrapper, ICheckContext context, CheckConfigurationEffective[] configs, BuildCheckResult result)
TestAssets\CustomCheck\Check1.cs (1)
28var infraData = configurationContext.CheckConfig[0];