publicCodeAnalysisIssue(string filePath, int? line, string message, int priority, string rule)
Parameters
Name
Type
Description
filePath
string
The path to the file affacted by the issue.
The path needs to be relative to the repository root.
null or System.String.Empty if issue is not related to a change in a file.
line
Nullable<T>
The line in the file where the issues has occurred.
Nothing if the issue affects the whole file or an asssembly.
message
string
The message of the code analysis issue.
priority
int
The priority of the message used to filter out issues if there are more issues than
should be posted.