-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ship SARIF template as a JSON file in external data folder (#2213)
* Include SARIF template as a JSON file Storing the template file in a `.json` file makes it easier to read, esp. because of proper indentation, and also to format them in case of modification. Inlining the JSON as a string in the source code makes both of these difficult. * add missing terminal line --------- Co-authored-by: AshesITR <[email protected]>
- Loading branch information
1 parent
8f8f151
commit 4a8b931
Showing
3 changed files
with
65 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json", | ||
"version": "2.1.0", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "lintr", | ||
"informationUri": "https://lintr.r-lib.org/", | ||
"version": "2.0.1", | ||
"rules": [ | ||
{ | ||
"id": "trailing_whitespace_linter", | ||
"fullDescription": { | ||
"text": "Trailing whitespace is superfluous." | ||
}, | ||
"defaultConfiguration": { | ||
"level": "note" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"results": [ | ||
{ | ||
"ruleId": "trailing_whitespace_linter", | ||
"ruleIndex": 0, | ||
"message": { | ||
"text": "Trailing blank lines are superfluous." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "TestFileFolder/hello.r", | ||
"uriBaseId": "ROOTPATH" | ||
}, | ||
"region": { | ||
"startLine": 2, | ||
"startColumn": 22, | ||
"snippet": { | ||
"text": "print(Hello World!) " | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"columnKind": "utf16CodeUnits", | ||
"originalUriBaseIds": { | ||
"ROOTPATH": { | ||
"uri": "file:///C:/repos/repototest/" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters