21 instantiations of CheckRule
CustomCheck (2)
Check1.cs (1)
12public static CheckRule SupportedRule = new CheckRule(
Check2.cs (1)
12public static CheckRule SupportedRule = new CheckRule(
CustomCheck2 (1)
Check3.cs (1)
12public static CheckRule SupportedRule = new CheckRule(
ErrorCustomCheck (3)
ErrorOnInitializeCheck.cs (1)
13public static CheckRule SupportedRule = new CheckRule(
ErrorOnRegisteredAction.cs (1)
13public static CheckRule SupportedRule = new CheckRule(
ErrorWhenRegisteringActions.cs (1)
13public static CheckRule SupportedRule = new CheckRule(
Microsoft.Build (7)
BuildCheck\Checks\DoubleWritesCheck.cs (1)
21public static CheckRule SupportedRule = new CheckRule(
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
13public static CheckRule SupportedRule = new CheckRule(
BuildCheck\Checks\PreferProjectReferenceCheck.cs (1)
15public static CheckRule SupportedRule = new CheckRule(RuleId, "PreferProjectReference",
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
17private static readonly CheckRule _usedBeforeInitializedRule = new CheckRule("BC0201", "PropertyUsedBeforeDeclared", 22private static readonly CheckRule _initializedAfterUsedRule = new CheckRule("BC0202", "PropertyDeclaredAfterUsed", 27private static readonly CheckRule _unusedPropertyRule = new CheckRule("BC0203", "UnusedPropertyDeclared",
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
15public static CheckRule SupportedRule = new CheckRule(RuleId, "ConflictingOutputPath",
Microsoft.Build.BuildCheck.UnitTests (8)
BuildCheckManagerProviderTests.cs (1)
94public static CheckRule SupportedRule = new CheckRule(
TaskInvocationAnalysisDataTests.cs (1)
27public static CheckRule SupportedRule = new CheckRule("BC0000", "TestRule", "TestDescription", "TestMessage",
TestAssets\CustomCheck\Check1.cs (1)
12public static CheckRule SupportedRule = new CheckRule(
TestAssets\CustomCheck\Check2.cs (1)
12public static CheckRule SupportedRule = new CheckRule(
TestAssets\CustomCheck2\Check3.cs (1)
12public static CheckRule SupportedRule = new CheckRule(
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (1)
13public static CheckRule SupportedRule = new CheckRule(
TestAssets\ErrorCustomCheck\ErrorOnRegisteredAction.cs (1)
13public static CheckRule SupportedRule = new CheckRule(
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (1)
13public static CheckRule SupportedRule = new CheckRule(
62 references to CheckRule
CustomCheck (6)
Check1.cs (3)
12public static CheckRule SupportedRule = new CheckRule( 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
Check2.cs (3)
12public static CheckRule SupportedRule = new CheckRule( 21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
CustomCheck2 (3)
Check3.cs (3)
12public static CheckRule SupportedRule = new CheckRule( 21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
ErrorCustomCheck (9)
ErrorOnInitializeCheck.cs (3)
13public static CheckRule SupportedRule = new CheckRule( 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
ErrorOnRegisteredAction.cs (3)
13public static CheckRule SupportedRule = new CheckRule( 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
ErrorWhenRegisteringActions.cs (3)
13public static CheckRule SupportedRule = new CheckRule( 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
Microsoft.Build (21)
BuildCheck\API\BuildCheckResult.cs (4)
18public static BuildCheckResult Create(CheckRule rule, IMSBuildElementLocation location, params string[] messageArgs) => new BuildCheckResult(rule, location, messageArgs); 20internal static BuildCheckResult CreateBuiltIn(CheckRule rule, IMSBuildElementLocation location, 23public BuildCheckResult(CheckRule checkConfig, IMSBuildElementLocation location, string[] messageArgs) 39public CheckRule CheckRule { get; }
BuildCheck\API\Check.cs (1)
25public 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)
21public static CheckRule SupportedRule = new CheckRule( 30public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (2)
13public static CheckRule SupportedRule = new CheckRule( 36public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
15public static CheckRule SupportedRule = new CheckRule(RuleId, "PreferProjectReference", 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\PropertiesUsageCheck.cs (5)
17private static readonly CheckRule _usedBeforeInitializedRule = new CheckRule("BC0201", "PropertyUsedBeforeDeclared", 22private static readonly CheckRule _initializedAfterUsedRule = new CheckRule("BC0202", "PropertyDeclaredAfterUsed", 27private static readonly CheckRule _unusedPropertyRule = new CheckRule("BC0203", "UnusedPropertyDeclared", 32internal static readonly IReadOnlyList<CheckRule> SupportedRulesList = [_usedBeforeInitializedRule, _initializedAfterUsedRule, _unusedPropertyRule]; 36public override IReadOnlyList<CheckRule> SupportedRules => SupportedRulesList;
BuildCheck\Checks\SharedOutputPathCheck.cs (2)
15public static CheckRule SupportedRule = new CheckRule(RuleId, "ConflictingOutputPath", 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Infrastructure\CheckWrapper.cs (1)
54foreach (CheckRule checkRule in check.SupportedRules)
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
257internal CheckConfigurationEffective GetMergedConfiguration(string projectFullPath, CheckRule checkRule)
Microsoft.Build.BuildCheck.UnitTests (23)
BuildCheckManagerProviderTests.cs (3)
94public static CheckRule SupportedRule = new CheckRule( 108public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TaskInvocationAnalysisDataTests.cs (2)
27public static CheckRule SupportedRule = new CheckRule("BC0000", "TestRule", "TestDescription", "TestMessage", 32public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
TestAssets\CustomCheck\Check1.cs (3)
12public static CheckRule SupportedRule = new CheckRule( 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\CustomCheck\Check2.cs (3)
12public static CheckRule SupportedRule = new CheckRule( 21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\CustomCheck2\Check3.cs (3)
12public static CheckRule SupportedRule = new CheckRule( 21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (3)
13public static CheckRule SupportedRule = new CheckRule( 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorOnRegisteredAction.cs (3)
13public static CheckRule SupportedRule = new CheckRule( 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (3)
13public static CheckRule SupportedRule = new CheckRule( 22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };