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