6 instantiations of CheckConfigurationEffective
Microsoft.Build (2)
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (1)
27new(string.Empty, CheckConfiguration.Default.EvaluationCheckScope!.Value,
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
265=> new CheckConfigurationEffective(
Microsoft.Build.BuildCheck.UnitTests (4)
CheckConfigurationEffectiveTests.cs (4)
24CheckConfigurationEffective configuration1 = new CheckConfigurationEffective( 29CheckConfigurationEffective configuration2 = new CheckConfigurationEffective( 44CheckConfigurationEffective configuration = new CheckConfigurationEffective( 57new CheckConfigurationEffective(
51 references to CheckConfigurationEffective
CustomCheck (1)
Check1.cs (1)
27var infraData = configurationContext.CheckConfig[0];
Microsoft.Build (42)
BuildCheck\API\ConfigurationContext.cs (3)
16private ConfigurationContext(CustomConfigurationData[] customConfigurationData, CheckConfigurationEffective[] checkConfig) 22internal static ConfigurationContext FromDataEnumeration(CustomConfigurationData[] customConfigurationData, CheckConfigurationEffective[] checkConfig) 35public IReadOnlyList<CheckConfigurationEffective> CheckConfig { get; init; }
BuildCheck\Checks\PropertiesUsageCheck.cs (4)
51var config = configurationContext.CheckConfig.FirstOrDefault(c => c.RuleId == _usedBeforeInitializedRule.Id) 52?? CheckConfigurationEffective.Default; 58?? CheckConfigurationEffective.Default; 64?? CheckConfigurationEffective.Default;
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (12)
121Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 128Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 135Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 143Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 151Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 159Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 167Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> 175Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler) 181Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler) 188Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler) 198CheckConfigurationEffective? commonConfig = checkCallback.Item1.CommonConfig; 199CheckConfigurationEffective[] configPerRule;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
228CheckConfigurationEffective[] configurations;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
234CheckConfigurationEffective[] configPerRule, 245CheckConfigurationEffective config = configPerRule.Length == 1
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (2)
26internal static CheckConfigurationEffective Default { get; } = 41public bool IsSameConfigurationAs(CheckConfigurationEffective? other) =>
BuildCheck\Infrastructure\CheckWrapper.cs (6)
63CheckConfigurationEffective.Default.Severity).ToDiagnosticSeverity()); 73internal CheckConfigurationEffective? CommonConfig { get; private set; } 83IReadOnlyList<CheckConfigurationEffective> effectiveConfigs, 90CheckConfigurationEffective effectiveConfig = effectiveConfigs[Math.Max(idx, effectiveConfigs.Count - 1)]; 122private void AddDiagnostic(CheckConfigurationEffective configurationEffective) 156internal void ReportResult(BuildCheckResult result, ICheckContext checkContext, CheckConfigurationEffective config)
BuildCheck\Infrastructure\ConfigurationProvider.cs (6)
105public CheckConfigurationEffective[] GetMergedConfigurations( 126public CheckConfigurationEffective[] GetMergedConfigurations( 130var configurations = new CheckConfigurationEffective[userConfigs.Length]; 258internal CheckConfigurationEffective GetMergedConfiguration(string projectFullPath, CheckRule checkRule) 261internal CheckConfigurationEffective MergeConfiguration( 270private CheckConfigurationEffective GetMergedConfiguration(
BuildCheck\Infrastructure\IConfigurationProvider.cs (2)
15CheckConfigurationEffective[] GetMergedConfigurations( 19CheckConfigurationEffective[] GetMergedConfigurations(
BuildCheck\OM\BuildCheckDataContext.cs (4)
67private readonly CheckConfigurationEffective[] _configPerRule; 68private readonly Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> _resultHandler; 73CheckConfigurationEffective[] configPerRule, 74Action<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)
54private void ResultHandler(CheckWrapper wrapper, ICheckContext context, CheckConfigurationEffective[] configs, BuildCheckResult result)
TestAssets\CustomCheck\Check1.cs (1)
27var infraData = configurationContext.CheckConfig[0];