24 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 (10)
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
15
public static CheckRule SupportedRule = new
CheckRule
(RuleId, "AvoidCopyAlways",
BuildCheck\Checks\DoubleWritesCheck.cs (1)
21
public static CheckRule SupportedRule = new
CheckRule
(
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
15
public static CheckRule SupportedRule = new
CheckRule
(RuleId, "EmbeddedResourceCulture",
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
13
public static CheckRule SupportedRule = new
CheckRule
(
BuildCheck\Checks\PreferProjectReferenceCheck.cs (1)
15
public static CheckRule SupportedRule = new
CheckRule
(RuleId, "PreferProjectReference",
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
17
private static readonly CheckRule _usedBeforeInitializedRule = new
CheckRule
("BC0201", "PropertyUsedBeforeDeclared",
22
private static readonly CheckRule _initializedAfterUsedRule = new
CheckRule
("BC0202", "PropertyDeclaredAfterUsed",
27
private static readonly CheckRule _unusedPropertyRule = new
CheckRule
("BC0203", "UnusedPropertyDeclared",
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
15
public static CheckRule SupportedRule = new
CheckRule
(RuleId, "ConflictingOutputPath",
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
14
public static CheckRule SupportedRule = new
CheckRule
(RuleId, "TargetFrameworkConfusion",
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
(
68 references to CheckRule
CustomCheck (6)
Check1.cs (3)
12
public static
CheckRule
SupportedRule = new CheckRule(
22
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 (27)
BuildCheck\API\BuildCheckResult.cs (4)
18
public static BuildCheckResult Create(
CheckRule
rule, IMSBuildElementLocation location, params string[] messageArgs) => new BuildCheckResult(rule, location, messageArgs);
20
internal static BuildCheckResult CreateBuiltIn(
CheckRule
rule, IMSBuildElementLocation location,
23
public BuildCheckResult(
CheckRule
checkConfig, IMSBuildElementLocation location, string[] messageArgs)
39
public
CheckRule
CheckRule { get; }
BuildCheck\API\Check.cs (1)
25
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\CopyAlwaysCheck.cs (2)
15
public static
CheckRule
SupportedRule = new CheckRule(RuleId, "AvoidCopyAlways",
22
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\DoubleWritesCheck.cs (2)
21
public static
CheckRule
SupportedRule = new CheckRule(
30
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\EmbeddedResourceCheck.cs (2)
15
public static
CheckRule
SupportedRule = new CheckRule(RuleId, "EmbeddedResourceCulture",
22
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\PreferProjectReferenceCheck.cs (2)
15
public static
CheckRule
SupportedRule = new CheckRule(RuleId, "PreferProjectReference",
22
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\PropertiesUsageCheck.cs (5)
17
private static readonly
CheckRule
_usedBeforeInitializedRule = new CheckRule("BC0201", "PropertyUsedBeforeDeclared",
22
private static readonly
CheckRule
_initializedAfterUsedRule = new CheckRule("BC0202", "PropertyDeclaredAfterUsed",
27
private static readonly
CheckRule
_unusedPropertyRule = new CheckRule("BC0203", "UnusedPropertyDeclared",
32
internal static readonly IReadOnlyList<
CheckRule
> SupportedRulesList = [_usedBeforeInitializedRule, _initializedAfterUsedRule, _unusedPropertyRule];
36
public override IReadOnlyList<
CheckRule
> SupportedRules => SupportedRulesList;
BuildCheck\Checks\SharedOutputPathCheck.cs (2)
15
public static
CheckRule
SupportedRule = new CheckRule(RuleId, "ConflictingOutputPath",
22
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (2)
14
public static
CheckRule
SupportedRule = new CheckRule(RuleId, "TargetFrameworkConfusion",
21
public override IReadOnlyList<
CheckRule
> SupportedRules { get; } = [SupportedRule];
BuildCheck\Infrastructure\CheckWrapper.cs (1)
54
foreach (
CheckRule
checkRule in check.SupportedRules)
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
257
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(
22
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 };