1 write to CheckRule
Microsoft.Build (1)
BuildCheck\API\BuildCheckResult.cs (1)
25CheckRule = checkConfig;
15 references to CheckRule
Microsoft.Build (10)
BuildCheck\API\BuildCheckResult.cs (7)
41public string Code => CheckRule.Id; 52public 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) + 60string.Format(CheckRule.MessageFormat, MessageArgs);
BuildCheck\Infrastructure\BuildEventsProcessor.cs (3)
250if (!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."); 261r.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"); 134result.CheckRule.Id.ShouldBe("BC0101");