Skip to content
Discussion options

You must be logged in to vote

Is it intentional?

Sort of -- the answer is that that the "plain" and SARIF formats are 1-based because they're either "human" formats (in the case of plain) or they have a specification that requires them to be 1-based (SARIF and GitHub annotations).

By contrast, the JSON format is (mostly) a direct dump of zizmor's internal representation, which is entirely 0-based. So what you're seeing here is mostly an artifact of me leaking an internal detail of zizmor 🙂

I think this would be unfortunately not easy to fix with the current version of the JSON output, although I'd something I'd like to fix with the "v2" format once I have a better sense of how that should be structured.

If so, is t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nchelluri
Comment options

Answer selected by funnelfiasco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants