Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement SARIF formatter for Eslint #4956

Merged
merged 26 commits into from
Oct 9, 2024

Conversation

atingmicrosoft
Copy link
Contributor

@atingmicrosoft atingmicrosoft commented Oct 1, 2024

Summary

Create ability for Eslint to create SARIF files.

Details

ESlint can now ccreate SARIF files by specifiying it in a projects heft.json that contains an eslintrc file.

How it was tested

Tested it by building packages with an eslintrc file and specifying the heft.json file to create a SARIF file.

Impacted documentation

@atingmicrosoft atingmicrosoft force-pushed the ating/eslint-sarif-formatter branch from 25c5e8a to 4f03791 Compare October 1, 2024 21:45
heft-plugins/heft-lint-plugin/src/Eslint.ts Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/Eslint.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/Eslint.ts Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
heft-plugins/heft-lint-plugin/src/SarifFormatter.ts Outdated Show resolved Hide resolved
…fact indicies. Added more snapshot tests. URL tracked in sariff formatter are relative vs absolute. Rules Meta now included in sarif file
@iclanton iclanton merged commit 2242751 into microsoft:main Oct 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

4 participants