1 write to CheckRule
Microsoft.Build (1)
BuildCheck\API\BuildCheckResult.cs (1)
25
CheckRule
= checkConfig;
15 references to CheckRule
Microsoft.Build (10)
BuildCheck\API\BuildCheckResult.cs (7)
41
public string Code =>
CheckRule
.Id;
52
public string MessageFormat =>
CheckRule
.MessageFormat;
57
? $"https://aka.ms/buildcheck/codes#{
CheckRule
.Id} - {string.Format(
CheckRule
.MessageFormat, MessageArgs)}"
59
: (!string.IsNullOrEmpty(
CheckRule
.HelpLinkUri) ? $"{
CheckRule
.HelpLinkUri} - " : null) +
60
string.Format(
CheckRule
.MessageFormat, MessageArgs);
BuildCheck\Infrastructure\BuildEventsProcessor.cs (3)
250
if (!checkWrapper.Check.SupportedRules.Contains(result.
CheckRule
))
254
$"The check '{checkWrapper.Check.FriendlyName}' reported a result for a rule '{result.
CheckRule
.Id}' that it does not support.");
261
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)
89
_registrationContext.Results[0].
CheckRule
.Id.ShouldBe("BC0101");
90
_registrationContext.Results[1].
CheckRule
.Id.ShouldBe("BC0101");
134
result.
CheckRule
.Id.ShouldBe("BC0101");