-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement SARIF formatter for Eslint (#4956)
* [heft-lint-plugin] Support outputting SARIF logs * fixed type issues in typescript for Sarifformmater. Upgrade @types/eslint to version 18.56.10 * PR fixes for creating SARIF Formatter * rush update * rush change * rush update * rush update * updated test snapshot * rush change * pnpm file fix * updated snapshot * 2nd round PR fixes for sarifFormatter * resolve repo-state.json merge conflict * deleted change file for webpack5-localization-plugin. Changes were reverted. * PR changes 3 for implementing SARIF formatter * 3rd round PR changes for SARIF formatter * made IRegion interface exportable * created snapshot tests and updated schema descriptions * minor fixes and improvements to formatEslintResultsAsSARIF function * edited rush changes * fixed functionality of sarifFormmater to properly track rule and artifact indicies. Added more snapshot tests. URL tracked in sariff formatter are relative vs absolute. Rules Meta now included in sarif file * fixed bug with importing linter * imporved efficiency of formatAsASARIF function
- Loading branch information
1 parent
982df68
commit 2242751
Showing
22 changed files
with
1,751 additions
and
50 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@rushstack/eslint-patch/ating-eslint-sarif-formatter_2024-10-02-21-04.json
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,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/eslint-patch", | ||
"comment": "", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@rushstack/eslint-patch" | ||
} |
10 changes: 10 additions & 0 deletions
10
...nges/@rushstack/eslint-plugin-packlets/ating-eslint-sarif-formatter_2024-10-02-21-04.json
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,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/eslint-plugin-packlets", | ||
"comment": "", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@rushstack/eslint-plugin-packlets" | ||
} |
10 changes: 10 additions & 0 deletions
10
...nges/@rushstack/eslint-plugin-security/ating-eslint-sarif-formatter_2024-10-02-21-04.json
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,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/eslint-plugin-security", | ||
"comment": "", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@rushstack/eslint-plugin-security" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@rushstack/eslint-plugin/ating-eslint-sarif-formatter_2024-10-02-21-04.json
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,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/eslint-plugin", | ||
"comment": "", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@rushstack/eslint-plugin" | ||
} |
10 changes: 10 additions & 0 deletions
10
...on/changes/@rushstack/heft-lint-plugin/ating-eslint-sarif-formatter_2024-10-01-21-31.json
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,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/heft-lint-plugin", | ||
"comment": "Add an option `sarifLogPath` that, when specified, will emit logs in the SARIF format: https://sarifweb.azurewebsites.net/. Note that this is only supported by ESLint.", | ||
"type": "minor" | ||
} | ||
], | ||
"packageName": "@rushstack/heft-lint-plugin" | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush. | ||
{ | ||
"pnpmShrinkwrapHash": "5afee1d392a0c2404869d7eda687b5571fe88515", | ||
"pnpmShrinkwrapHash": "673f7de41244835915a7947c11b6dbe80f944010", | ||
"preferredVersionsHash": "ce857ea0536b894ec8f346aaea08cfd85a5af648" | ||
} |
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
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
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
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
Oops, something went wrong.