19 overrides of SupportedRules
CustomCheck (2)
Check1.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
Check2.cs (1)
21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
CustomCheck2 (1)
Check3.cs (1)
21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
ErrorCustomCheck (3)
ErrorOnInitializeCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
ErrorOnRegisteredAction.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
ErrorWhenRegisteringActions.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
Microsoft.Build (5)
BuildCheck\Checks\DoubleWritesCheck.cs (1)
30public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
36public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\PreferProjectReferenceCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\PropertiesUsageCheck.cs (1)
36public override IReadOnlyList<CheckRule> SupportedRules => SupportedRulesList;
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
Microsoft.Build.BuildCheck.UnitTests (8)
BuildCheckManagerProviderTests.cs (1)
108public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TaskInvocationAnalysisDataTests.cs (1)
32public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
TestAssets\CustomCheck\Check1.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\CustomCheck\Check2.cs (1)
21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\CustomCheck2\Check3.cs (1)
21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorOnRegisteredAction.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
12 references to SupportedRules
Microsoft.Build (12)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (6)
201if (instance != null && instance.SupportedRules.Any()) 205instance.SupportedRules.Select(r => r.Id).ToArray(), 206instance.SupportedRules.Any(r => r.DefaultConfiguration.IsEnabled == true)); 270check.SupportedRules.Count != checkFactoryContext.RuleIds.Length 272!check.SupportedRules.Select(r => r.Id) 277$"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 (1)
241if (!checkWrapper.Check.SupportedRules.Contains(result.CheckRule))
BuildCheck\Infrastructure\CheckWrapper.cs (2)
46_ruleTelemetryData = new BuildCheckRuleTelemetryData[check.SupportedRules.Count]; 54foreach (CheckRule checkRule in check.SupportedRules)
BuildCheck\Infrastructure\ConfigurationProvider.cs (3)
107=> FillConfiguration(projectFullPath, check.SupportedRules, GetMergedConfiguration); 134check.SupportedRules[idx].Id, 135check.SupportedRules[idx].DefaultConfiguration,