18 overrides of SupportedRules
CustomCheck (2)
Check1.cs (1)
21public 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 (4)
BuildCheck\Checks\DoubleWritesCheck.cs (1)
33public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
36public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\PropertiesUsageCheck.cs (1)
38public override IReadOnlyList<CheckRule> SupportedRules => SupportedRulesList;
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
26public 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)
21public 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)
189if (instance != null && instance.SupportedRules.Any()) 193instance.SupportedRules.Select(r => r.Id).ToArray(), 194instance.SupportedRules.Any(r => r.DefaultConfiguration.IsEnabled == true)); 258check.SupportedRules.Count != checkFactoryContext.RuleIds.Length 260!check.SupportedRules.Select(r => r.Id) 265$"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)
237if (!checkWrapper.Check.SupportedRules.Contains(result.CheckRule))
BuildCheck\Infrastructure\CheckWrapper.cs (2)
48_ruleTelemetryData = new BuildCheckRuleTelemetryData[check.SupportedRules.Count]; 56foreach (CheckRule checkRule in check.SupportedRules)
BuildCheck\Infrastructure\ConfigurationProvider.cs (3)
108=> FillConfiguration(projectFullPath, check.SupportedRules, GetMergedConfiguration); 135check.SupportedRules[idx].Id, 136check.SupportedRules[idx].DefaultConfiguration,