2 writes to Id
Microsoft.Build (2)
BuildCheck\API\CheckRule.cs (2)
30Id = id; 53Id = id;
24 references to Id
Microsoft.Build (18)
BuildCheck\API\BuildCheckResult.cs (2)
41public string Code => CheckRule.Id; 57? $"https://aka.ms/buildcheck/codes#{CheckRule.Id} - {string.Format(CheckRule.MessageFormat, MessageArgs)}"
BuildCheck\Checks\PropertiesUsageCheck.cs (7)
49var config = configurationContext.CheckConfig.FirstOrDefault(c => c.RuleId == _usedBeforeInitializedRule.Id) 55config = configurationContext.CheckConfig.FirstOrDefault(c => c.RuleId == _unusedPropertyRule.Id) 61config = configurationContext.CheckConfig.FirstOrDefault(c => c.RuleId == _usedBeforeInitializedRule.Id) 73GetAllowUninitPropsInConditionsConfig(customConfigurationData, _usedBeforeInitializedRule.Id); 75GetAllowUninitPropsInConditionsConfig(customConfigurationData, _initializedAfterUsedRule.Id); 83$"[{_usedBeforeInitializedRule.Id}] and [{_initializedAfterUsedRule.Id}] are not allowed to have differing configuration value for [{_allowUninitPropsInConditionsKey}]");
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (4)
148new BuiltInCheckFactory([SharedOutputPathCheck.SupportedRule.Id], SharedOutputPathCheck.SupportedRule.DefaultConfiguration.IsEnabled ?? false, Construct<SharedOutputPathCheck>), 208instance.SupportedRules.Select(r => r.Id).ToArray(), 275!check.SupportedRules.Select(r => r.Id) 280$"The check '{check.FriendlyName}' exposes rules '{check.SupportedRules.Select(r => r.Id).ToCsvString()}', but different rules were declared during registration: '{checkFactoryContext.RuleIds.ToCsvString()}'");
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
254$"The check '{checkWrapper.Check.FriendlyName}' reported a result for a rule '{result.CheckRule.Id}' that it does not support."); 261r.RuleId.Equals(result.CheckRule.Id, StringComparison.CurrentCultureIgnoreCase));
BuildCheck\Infrastructure\CheckWrapper.cs (1)
57ruleId: checkRule.Id,
BuildCheck\Infrastructure\ConfigurationProvider.cs (2)
134check.SupportedRules[idx].Id, 258=> GetMergedConfiguration(projectFullPath, checkRule.Id, checkRule.DefaultConfiguration);
Microsoft.Build.BuildCheck.UnitTests (6)
DoubleWritesAnalyzer_Tests.cs (2)
56_registrationContext.Results[0].CheckRule.Id.ShouldBe("BC0102"); 77_registrationContext.Results.ForEach(result => result.CheckRule.Id.ShouldBe("BC0102"));
SharedOutputPathCheck_Tests.cs (3)
89_registrationContext.Results[0].CheckRule.Id.ShouldBe("BC0101"); 90_registrationContext.Results[1].CheckRule.Id.ShouldBe("BC0101"); 134result.CheckRule.Id.ShouldBe("BC0101");
TaskInvocationAnalysisDataTests.cs (1)
67new ([TestCheck.SupportedRule.Id], true, () => s_testCheck = new TestCheck()),