22 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 (8)
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\DoubleWritesCheck.cs (1)
30public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
22public 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];
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
21public 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)
204if (instance != null && instance.SupportedRules.Any()) 208instance.SupportedRules.Select(r => r.Id).ToArray(), 209instance.SupportedRules.Any(r => r.DefaultConfiguration.IsEnabled == true)); 273check.SupportedRules.Count != checkFactoryContext.RuleIds.Length 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 (1)
250if (!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,