1 write to CheckRule
Microsoft.Build (1)
BuildCheck\API\BuildCheckResult.cs (1)
23
CheckRule
= checkConfig;
13 references to CheckRule
Microsoft.Build (8)
BuildCheck\API\BuildCheckResult.cs (5)
32
CheckResultSeverity.Warning => new BuildCheckResultWarning(this,
CheckRule
.Id),
33
CheckResultSeverity.Error => new BuildCheckResultError(this,
CheckRule
.Id),
48
public string MessageFormat =>
CheckRule
.MessageFormat;
52
_message ??= $"https://aka.ms/buildcheck/codes#{
CheckRule
.Id} - {string.Format(
CheckRule
.MessageFormat, MessageArgs)}";
BuildCheck\Infrastructure\BuildEventsProcessor.cs (3)
237
if (!checkWrapper.Check.SupportedRules.Contains(result.
CheckRule
))
241
$"The check '{checkWrapper.Check.FriendlyName}' reported a result for a rule '{result.
CheckRule
.Id}' that it does not support.");
248
r.RuleId.Equals(result.
CheckRule
.Id, StringComparison.CurrentCultureIgnoreCase));
Microsoft.Build.BuildCheck.UnitTests (5)
DoubleWritesAnalyzer_Tests.cs (2)
56
_registrationContext.Results[0].
CheckRule
.Id.ShouldBe("BC0102");
77
_registrationContext.Results.ForEach(result => result.
CheckRule
.Id.ShouldBe("BC0102"));
SharedOutputPathCheck_Tests.cs (3)
88
_registrationContext.Results[0].
CheckRule
.Id.ShouldBe("BC0101");
89
_registrationContext.Results[1].
CheckRule
.Id.ShouldBe("BC0101");
133
result.
CheckRule
.Id.ShouldBe("BC0101");