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