20 instantiations of CheckRule
CustomCheck (2)
Check1.cs (1)
12
public static CheckRule SupportedRule = new
CheckRule
(
Check2.cs (1)
12
public static CheckRule SupportedRule = new
CheckRule
(
CustomCheck2 (1)
Check3.cs (1)
12
public static CheckRule SupportedRule = new
CheckRule
(
ErrorCustomCheck (3)
ErrorOnInitializeCheck.cs (1)
13
public static CheckRule SupportedRule = new
CheckRule
(
ErrorOnRegisteredAction.cs (1)
13
public static CheckRule SupportedRule = new
CheckRule
(
ErrorWhenRegisteringActions.cs (1)
13
public static CheckRule SupportedRule = new
CheckRule
(
Microsoft.Build (6)
BuildCheck\Checks\DoubleWritesCheck.cs (1)
24
public static CheckRule SupportedRule = new
CheckRule
(
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
13
public static CheckRule SupportedRule = new
CheckRule
(
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
19
private static readonly CheckRule _usedBeforeInitializedRule = new
CheckRule
("BC0201", "PropertyUsedBeforeDeclared",
24
private static readonly CheckRule _initializedAfterUsedRule = new
CheckRule
("BC0202", "PropertyDeclaredAfterUsed",
29
private static readonly CheckRule _unusedPropertyRule = new
CheckRule
("BC0203", "UnusedPropertyDeclared",
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
19
public static CheckRule SupportedRule = new
CheckRule
(RuleId, "ConflictingOutputPath",
Microsoft.Build.BuildCheck.UnitTests (8)
BuildCheckManagerProviderTests.cs (1)
94
public static CheckRule SupportedRule = new
CheckRule
(
TaskInvocationAnalysisDataTests.cs (1)
27
public static CheckRule SupportedRule = new
CheckRule
("BC0000", "TestRule", "TestDescription", "TestMessage",
TestAssets\CustomCheck\Check1.cs (1)
12
public static CheckRule SupportedRule = new
CheckRule
(
TestAssets\CustomCheck\Check2.cs (1)
12
public static CheckRule SupportedRule = new
CheckRule
(
TestAssets\CustomCheck2\Check3.cs (1)
12
public static CheckRule SupportedRule = new
CheckRule
(
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (1)
13
public static CheckRule SupportedRule = new
CheckRule
(
TestAssets\ErrorCustomCheck\ErrorOnRegisteredAction.cs (1)
13
public static CheckRule SupportedRule = new
CheckRule
(
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (1)
13
public static CheckRule SupportedRule = new
CheckRule
(
59 references to CheckRule
CustomCheck (6)
Check1.cs (3)
12
public static
CheckRule
SupportedRule = new CheckRule(
21
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
Check2.cs (3)
12
public static
CheckRule
SupportedRule = new CheckRule(
21
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
CustomCheck2 (3)
Check3.cs (3)
12
public static
CheckRule
SupportedRule = new CheckRule(
21
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
ErrorCustomCheck (9)
ErrorOnInitializeCheck.cs (3)
13
public static
CheckRule
SupportedRule = new CheckRule(
22
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
ErrorOnRegisteredAction.cs (3)
13
public static
CheckRule
SupportedRule = new CheckRule(
22
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
ErrorWhenRegisteringActions.cs (3)
13
public static
CheckRule
SupportedRule = new CheckRule(
22
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
Microsoft.Build (18)
BuildCheck\API\BuildCheckResult.cs (3)
19
public static BuildCheckResult Create(
CheckRule
rule, IMSBuildElementLocation location, params string[] messageArgs) => new BuildCheckResult(rule, location, messageArgs);
21
public BuildCheckResult(
CheckRule
checkConfig, IMSBuildElementLocation location, string[] messageArgs)
37
public
CheckRule
CheckRule { get; }
BuildCheck\API\Check.cs (1)
27
public abstract IReadOnlyList<
CheckRule
> SupportedRules { get; }
BuildCheck\API\CheckRule.cs (1)
9
/// for this reason a single <see cref="Check"/> can expose multiple <see cref="
CheckRule
"/>s.
BuildCheck\Checks\DoubleWritesCheck.cs (2)
24
public static
CheckRule
SupportedRule = new CheckRule(
33
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (2)
13
public static
CheckRule
SupportedRule = new CheckRule(
36
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\PropertiesUsageCheck.cs (5)
19
private static readonly
CheckRule
_usedBeforeInitializedRule = new CheckRule("BC0201", "PropertyUsedBeforeDeclared",
24
private static readonly
CheckRule
_initializedAfterUsedRule = new CheckRule("BC0202", "PropertyDeclaredAfterUsed",
29
private static readonly
CheckRule
_unusedPropertyRule = new CheckRule("BC0203", "UnusedPropertyDeclared",
34
internal static readonly IReadOnlyList<
CheckRule
> SupportedRulesList = [_usedBeforeInitializedRule, _initializedAfterUsedRule, _unusedPropertyRule];
38
public override IReadOnlyList<
CheckRule
> SupportedRules => SupportedRulesList;
BuildCheck\Checks\SharedOutputPathCheck.cs (2)
19
public static
CheckRule
SupportedRule = new CheckRule(RuleId, "ConflictingOutputPath",
26
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = [SupportedRule];
BuildCheck\Infrastructure\CheckWrapper.cs (1)
56
foreach (
CheckRule
checkRule in check.SupportedRules)
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
258
internal CheckConfigurationEffective GetMergedConfiguration(string projectFullPath,
CheckRule
checkRule)
Microsoft.Build.BuildCheck.UnitTests (23)
BuildCheckManagerProviderTests.cs (3)
94
public static
CheckRule
SupportedRule = new CheckRule(
108
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
TaskInvocationAnalysisDataTests.cs (2)
27
public static
CheckRule
SupportedRule = new CheckRule("BC0000", "TestRule", "TestDescription", "TestMessage",
32
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = [SupportedRule];
TestAssets\CustomCheck\Check1.cs (3)
12
public static
CheckRule
SupportedRule = new CheckRule(
21
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
TestAssets\CustomCheck\Check2.cs (3)
12
public static
CheckRule
SupportedRule = new CheckRule(
21
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
TestAssets\CustomCheck2\Check3.cs (3)
12
public static
CheckRule
SupportedRule = new CheckRule(
21
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (3)
13
public static
CheckRule
SupportedRule = new CheckRule(
22
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorOnRegisteredAction.cs (3)
13
public static
CheckRule
SupportedRule = new CheckRule(
22
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (3)
13
public static
CheckRule
SupportedRule = new CheckRule(
22
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = new List<
CheckRule
>() { SupportedRule };