-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add line-numbers to the output #150
Comments
This has previously been mentioned here - effectively this would require implementing custom parsers for at least JSON, YAML, TOML, and XML since none of the libraries the scanner uses for those provide line numbers in any form, and that would be a huge jump in complexity. I'm not really sure how useful line numbers would be either for most of the parsers since they're meant to be generated files. |
Thanks, @G-Rath. |
+1 to this being useful for remediation in the future, and enable very nice output integrations with e.g. SARIF. @another-rex thoughts? |
I'd love to see this happen, and as @oliverchang points out, it would be useful for SARIF integration. Otherwise, currently, I have to provide fake location information (top of the file) to make this work with a SARIF viewer (GitHub's code scanning tab). |
This issue has not had any activity for 60 days and will be automatically closed in two weeks |
Hi,
It would be great to add the line numbers of the package in the input file to the output (at least to the JSON output).
Thanks!
The text was updated successfully, but these errors were encountered: