1 write to CheckRule
Microsoft.Build (1)
BuildCheck\API\BuildCheckResult.cs (1)
23CheckRule = checkConfig;
13 references to CheckRule
Microsoft.Build (8)
BuildCheck\API\BuildCheckResult.cs (5)
32CheckResultSeverity.Warning => new BuildCheckResultWarning(this, CheckRule.Id), 33CheckResultSeverity.Error => new BuildCheckResultError(this, CheckRule.Id), 48public string MessageFormat => CheckRule.MessageFormat; 52_message ??= $"https://aka.ms/buildcheck/codes#{CheckRule.Id} - {string.Format(CheckRule.MessageFormat, MessageArgs)}";
BuildCheck\Infrastructure\BuildEventsProcessor.cs (3)
237if (!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."); 248r.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"); 133result.CheckRule.Id.ShouldBe("BC0101");