-
Notifications
You must be signed in to change notification settings - Fork 418
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
--format=sarif
still outputs summary with using mix credo diff
#1153
Comments
Refs #1153 We need a better solution long term. For now, we should not advertise format options that are not viable.
@mashton You are right. The big question is, what should that output look like? Only list the new issues? |
@rrrene, good point. Tricky question. I think the SARIF way to do this is to return all the results and indicate in each Here's what I see in the SARIF spec along these lines: So to be concrete, we can imagine this scenario: {
"$schema": "https:/1/schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
"version": "2.1.0",
"runs": [
{
"id": "<commit hash for target of analysis>",
"baselineId": "<commit hash of origin/main>",
"results": [
{
"ruleId": "EX3009",
"baselineState": "new",
"otherStuff": "..."
},
{
"ruleId": "EX3007",
"baselineState": "existing",
"otherStuff": "..."
},
{
"ruleId": "EX3023",
"baselineState": "absent",
"otherStuff": "..."
}
]
}
]
} What's not immediately clear to me is whether it's meaningful for a Thoughts? |
Environment
mix credo -v
): 1.7.7elixir -v
): Erlang 24/Elixir 1.16.3What were you trying to do?
use
SARIF
format as output, write to a file, and upload to GHASExpected outcome
Actual outcome
I'm totally willing to try my hand at a PR. Let me know if this seems to be a bug.
The text was updated successfully, but these errors were encountered: