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