5 references to Rule
Microsoft.ML.CodeAnalyzer.Tests (3)
Code\ContractsCheckTest.cs (3)
37
VerifyCS.Diagnostic(ContractsCheckAnalyzer.SimpleMessageDiagnostic.
Rule
).WithLocation(basis + 24, 29).WithArguments("Check", "$\"Hello {foo} is cool\""),
38
VerifyCS.Diagnostic(ContractsCheckAnalyzer.SimpleMessageDiagnostic.
Rule
).WithLocation(basis + 28, 29).WithArguments("Check", "string.Format(\"Hello {0} is cool\", foo)"),
39
VerifyCS.Diagnostic(ContractsCheckAnalyzer.SimpleMessageDiagnostic.
Rule
).WithLocation(basis + 32, 35).WithArguments("Check", "\"Less fine: \" + env.GetType().Name"),
Microsoft.ML.InternalCodeAnalyzer (2)
ContractsCheckAnalyzer.cs (2)
77
NameofDiagnostic.Rule, ExceptionDiagnostic.Rule, SimpleMessageDiagnostic.
Rule
,
239
SimpleMessageDiagnostic.
Rule
, arg.GetLocation(), name, arg.Expression));