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