16 instantiations of CustomConfigurationData
Microsoft.Build (2)
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
70
var data = new
CustomConfigurationData
(ruleId, configuration);
BuildCheck\Infrastructure\CustomConfigurationData.cs (1)
16
public static CustomConfigurationData Null { get; } =
new
(string.Empty);
Microsoft.Build.BuildCheck.UnitTests (14)
CustomConfigurationData_Tests.cs (14)
25
var customConfigurationData1 = new
CustomConfigurationData
("testRuleId");
34
var customConfigurationData1 = new
CustomConfigurationData
("testRuleId");
43
var customConfigurationData1 = new
CustomConfigurationData
("testRuleId");
44
var customConfigurationData2 = new
CustomConfigurationData
("testRuleId");
62
var customConfigurationData1 = new
CustomConfigurationData
("testRuleId", config1);
63
var customConfigurationData2 = new
CustomConfigurationData
("testRuleId", config2);
76
var customConfigurationData1 = new
CustomConfigurationData
("testRuleId", config);
77
var customConfigurationData2 = new
CustomConfigurationData
("testRuleId");
95
var customConfigurationData1 = new
CustomConfigurationData
("testRuleId", config1);
96
var customConfigurationData2 = new
CustomConfigurationData
("testRuleId", config2);
114
var customConfigurationData1 = new
CustomConfigurationData
("testRuleId", config1);
115
var customConfigurationData2 = new
CustomConfigurationData
("testRuleId", config2);
135
var customConfigurationData1 = new
CustomConfigurationData
("testRuleId", config1);
136
var customConfigurationData2 = new
CustomConfigurationData
("testRuleId", config2);
45 references to CustomConfigurationData
Microsoft.Build (24)
BuildCheck\API\ConfigurationContext.cs (3)
14
private ConfigurationContext(
CustomConfigurationData
[] customConfigurationData, CheckConfigurationEffective[] checkConfig)
20
internal static ConfigurationContext FromDataEnumeration(
CustomConfigurationData
[] customConfigurationData, CheckConfigurationEffective[] checkConfig)
28
public IReadOnlyList<
CustomConfigurationData
> CustomConfigurationData { get; init; }
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (2)
41
foreach (
CustomConfigurationData
customConfigurationData in configurationContext.CustomConfigurationData)
76
private static bool? GetVerboseEnvVarOutputConfig(
CustomConfigurationData
customConfigurationData, string ruleId) => customConfigurationData.RuleId.Equals(ruleId, StringComparison.InvariantCultureIgnoreCase)
BuildCheck\Checks\PropertiesUsageCheck.cs (2)
70
foreach (
CustomConfigurationData
customConfigurationData in configurationContext.CustomConfigurationData)
92
private static bool? GetAllowUninitPropsInConditionsConfig(
CustomConfigurationData
customConfigurationData,
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
252
CustomConfigurationData
[] customConfigData =
BuildCheck\Infrastructure\ConfigurationProvider.cs (10)
33
private readonly ConcurrentDictionary<string,
CustomConfigurationData
> _customConfigurationData = new ConcurrentDictionary<string,
CustomConfigurationData
>(StringComparer.InvariantCultureIgnoreCase);
50
public
CustomConfigurationData
GetCustomConfiguration(string projectFullPath, string ruleId)
56
return
CustomConfigurationData
.Null;
67
return
CustomConfigurationData
.Null;
70
var
data = new CustomConfigurationData(ruleId, configuration);
89
var
configuration = GetCustomConfiguration(projectFullPath, ruleId);
93
internal void VerifyCustomConfigurationEquality(string ruleId,
CustomConfigurationData
configurationData)
95
if (_customConfigurationData.TryGetValue(ruleId, out
var
storedConfiguration))
120
public
CustomConfigurationData
[] GetCustomConfigurations(
BuildCheck\Infrastructure\CustomConfigurationData.cs (5)
16
public static
CustomConfigurationData
Null { get; } = new(string.Empty);
18
public static bool NotNull(
CustomConfigurationData
data) => !Null.Equals(data);
59
if (obj is not
CustomConfigurationData
)
64
var
customConfigObj = (
CustomConfigurationData
)obj;
BuildCheck\Infrastructure\IConfigurationProvider.cs (1)
23
CustomConfigurationData
[] GetCustomConfigurations(
Microsoft.Build.BuildCheck.UnitTests (21)
BuildCheckManagerProviderTests.cs (1)
71
public
CustomConfigurationData
[] GetCustomConfigurations(string projectFullPath, IReadOnlyList<string> ruleIds) => [];
ConfigurationProvider_Tests.cs (1)
89
var
customConfiguration = configurationProvider.GetCustomConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id");
CustomConfigurationData_Tests.cs (19)
16
var
customConfigurationData1 =
CustomConfigurationData
.Null;
17
var
customConfigurationData2 =
CustomConfigurationData
.Null;
25
var
customConfigurationData1 = new CustomConfigurationData("testRuleId");
26
var
customConfigurationData2 = customConfigurationData1;
34
var
customConfigurationData1 = new CustomConfigurationData("testRuleId");
43
var
customConfigurationData1 = new CustomConfigurationData("testRuleId");
44
var
customConfigurationData2 = new CustomConfigurationData("testRuleId");
62
var
customConfigurationData1 = new CustomConfigurationData("testRuleId", config1);
63
var
customConfigurationData2 = new CustomConfigurationData("testRuleId", config2);
76
var
customConfigurationData1 = new CustomConfigurationData("testRuleId", config);
77
var
customConfigurationData2 = new CustomConfigurationData("testRuleId");
95
var
customConfigurationData1 = new CustomConfigurationData("testRuleId", config1);
96
var
customConfigurationData2 = new CustomConfigurationData("testRuleId", config2);
114
var
customConfigurationData1 = new CustomConfigurationData("testRuleId", config1);
115
var
customConfigurationData2 = new CustomConfigurationData("testRuleId", config2);
135
var
customConfigurationData1 = new CustomConfigurationData("testRuleId", config1);
136
var
customConfigurationData2 = new CustomConfigurationData("testRuleId", config2);