-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Feature request: --outputsarif
support
#6566
Comments
Pyright already outputs a JSON output option. From this, you can transform to any output format you'd prefer with a short script. We have no plans to support alternative formats at this time. |
Is this still the case? Having SARIF outputs would allow it to plug into the GitHub code scanning tool and allow people to run CI pipelines that only block new type errors (which would allow legacy codebases to enable pyright and gradually fix issues). Seems like something that should be built into the tool itself, especially since it seems like the current output has all the needed values so no change in how this is collected would be needed? I would even argue that this could and should be the standard output format in v2. |
yet another "short script" to convert from XXX to a well stablished standard with plenty of tools to support it. This "short script" will require maintenance, running it, downloading, will present yet another attack surface, will require dependencies to be regularly updated... |
Is your feature request related to a problem? Please describe.
SARIF is a well supported output format for linters, there exist integrations (eg. to view issues in a web browser), and I think it is really easy to convert the current json output into SARIF:
Current output
Equivalent SARIF
Describe the solution you’d like
An
--outputsarif
option, or adding a new--output
enum flag with text/json/sarif options, whichever is preferrable.The text was updated successfully, but these errors were encountered: