20 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 (6)
BuildCheck\Checks\DoubleWritesCheck.cs (1)
24public static CheckRule SupportedRule = new CheckRule(
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
13public static CheckRule SupportedRule = new CheckRule(
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
19private static readonly CheckRule _usedBeforeInitializedRule = new CheckRule("BC0201", "PropertyUsedBeforeDeclared", 24private static readonly CheckRule _initializedAfterUsedRule = new CheckRule("BC0202", "PropertyDeclaredAfterUsed", 29private static readonly CheckRule _unusedPropertyRule = new CheckRule("BC0203", "UnusedPropertyDeclared",
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
19public 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(
59 references to CheckRule
CustomCheck (6)
Check1.cs (3)
12public static CheckRule SupportedRule = new CheckRule( 21public 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 (18)
BuildCheck\API\BuildCheckResult.cs (3)
19public static BuildCheckResult Create(CheckRule rule, IMSBuildElementLocation location, params string[] messageArgs) => new BuildCheckResult(rule, location, messageArgs); 21public BuildCheckResult(CheckRule checkConfig, IMSBuildElementLocation location, string[] messageArgs) 37public CheckRule CheckRule { get; }
BuildCheck\API\Check.cs (1)
27public 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)
24public static CheckRule SupportedRule = new CheckRule( 33public 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\PropertiesUsageCheck.cs (5)
19private static readonly CheckRule _usedBeforeInitializedRule = new CheckRule("BC0201", "PropertyUsedBeforeDeclared", 24private static readonly CheckRule _initializedAfterUsedRule = new CheckRule("BC0202", "PropertyDeclaredAfterUsed", 29private static readonly CheckRule _unusedPropertyRule = new CheckRule("BC0203", "UnusedPropertyDeclared", 34internal static readonly IReadOnlyList<CheckRule> SupportedRulesList = [_usedBeforeInitializedRule, _initializedAfterUsedRule, _unusedPropertyRule]; 38public override IReadOnlyList<CheckRule> SupportedRules => SupportedRulesList;
BuildCheck\Checks\SharedOutputPathCheck.cs (2)
19public static CheckRule SupportedRule = new CheckRule(RuleId, "ConflictingOutputPath", 26public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Infrastructure\CheckWrapper.cs (1)
56foreach (CheckRule checkRule in check.SupportedRules)
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
258internal 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( 21public 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 };