Skip to content

Conversation

@jfeingold35
Copy link
Contributor

No description provided.

}
}
} else {
return {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validator didn't like having an empty region object, so I'm just using an empty artifactLocation object outright when there's no code location.
Technically I suppose it's possible we could see a case where there's a code location with no start line or anything else, and the output of that would be invalid SARIF. I can account for that scenario if consensus is that it's worth the trouble.

@jfeingold35 jfeingold35 merged commit 4b243f6 into dev Dec 3, 2024
5 checks passed
@stephen-carter-at-sf stephen-carter-at-sf deleted the d/W-17159591-b branch January 30, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants