Fix broken sarif export#80
Conversation
|
About ba73cfd, this is needed for some checks where no location is present afaik. Or is it a Sarif spec requirement to have at least |
|
Yes, I was testing with different Sarif viewers like VS Code and VS. Implementations differ. First I thought to skip |
|
Fair enough. Is |
|
Yes, it is startLine: issue.location.line === 0 ? 1 : issue.location.line, // This is odd, VS and VS Code highlight the line correctly, but min value is 1
startColumn: issue.location.column + 1, // sarif columns start from 1
charLength: issue.sample ? issue.sample.length : 0I dropped the check for |
|
Thank you very much @JarLob <3 |
Plus upgrade sarif schema to 2.1.0