Summary
Gets an instance of a provider for code analysis issues reported by JetBrains Inspect Code using a log file from disk.
Syntax
public static ICodeAnalysisProvider InspectCodeIssuesFromFilePath(this ICakeContext context, FilePath logFilePath)
Examples
Report code analysis issues reported by JetBrains Inspect Code to a TFS pull request:
var repoRoot = new DirectoryPath("c:\repo");
ReportIssuesToPullRequest(
InspectCodeIssuesFromFilePath(
new FilePath("C:\build\InspectCode.log")),
TfsPullRequests(
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
"refs/heads/feature/myfeature",
TfsAuthenticationNtlm()),
repoRoot);
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
logFilePath |
FilePath |
Path to the the InspectCode log file. |
Return Value
Type |
Description |
ICodeAnalysisProvider |
Instance of a provider for code analysis issues reported by JetBrains Insepct Code. |