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