-
Notifications
You must be signed in to change notification settings - Fork 40
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
lint/output: SARIF output is incorrect when a parse error is encountered #919
Comments
What if parse errors were converted into linter violations at all levels of the stack? We already do that in the language server. Lines 78 to 151 in 760b484
Or is this a bad idea for some reason... I was just thinking that the way to generate this output is much like the code we already have for parse errors in the lsp/lint functions. |
Hey, that doesn't sound bad at all! I guess we could add a special category for errors? Having all issues handled in a uniform way sounds compelling to me. |
Also related: #745 Those could also be dealt with the same way. |
When Regal is requested to format linting results in SARIF format, and there is a parse error, the output returns is not a valid SARIF json:
In such cases, I understand the output should set an
invocations
field and use that to present errors.I think bonus points for adding an item to
toolExecutionNotifications
for each parse error.The text was updated successfully, but these errors were encountered: