-
Notifications
You must be signed in to change notification settings - Fork 49
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
Sourcemaps or #line directives #618
Comments
Perhaps transpiled or minimized code could be indicated by making a If the original source is in a different programming language not understood by the SARIF producer, then I suppose it won't be able to produce any |
Regarding your last observation, in our case it's more like a template engine where verbatim code in the target language is interspersed with generated code. In theory if a fix fully overlaps the target, and the producer and the template language translator both understand SARIF, it seems possible that we could translate some fixes. Edit: If I understand I think the existing "includedBy"/"includes", cover this exact kind of relationship |
From the example in §3.34.1, it seems "includes" and "isIncludedBy" are intended for cases like the |
Yeah, bit of a brain fart there, so it is probably best to leverage the "a SARIF producer MAY use any value." value clause with something else, perhaps "verbatimCopiedBy". "verbatimCopied" |
I like to discuss this within the TC as I try to minimize the number of |
Reading through the spec, I was curious because I didn't see anything that mentioned line directives or sourcemaps. I'm curious if this has been discussed, and whether there is a reasonable mechanism for it within the spec that I missed, or an intention that this be handled externally by some too taking a sarif file and a sourcemap and translating the relevant locations, or whether this is something that could be considered in the future.
The text was updated successfully, but these errors were encountered: