-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1110 from The-Jonsey/feature/ignore-sarif-suppres…
…sions Ignore suppressed issues in sarif reports
- Loading branch information
Showing
3 changed files
with
198 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
173 changes: 173 additions & 0 deletions
173
src/test/resources/edu/hm/hafner/analysis/parser/violations/suppressed-sarif.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
{ | ||
"runs": [ | ||
{ | ||
"invocations": [], | ||
"language": "en-US", | ||
"versionControlProvenance": [], | ||
"artifacts": [], | ||
"logicalLocations": [], | ||
"graphs": [], | ||
"results": [ | ||
{ | ||
"ruleId": "", | ||
"ruleIndex": -1, | ||
"kind": "FAIL", | ||
"level": "note", | ||
"message": { | ||
"text": "asdasd", | ||
"arguments": [] | ||
}, | ||
"locations": [ | ||
{ | ||
"id": -1, | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/whatever/path.c", | ||
"index": -1 | ||
}, | ||
"region": { | ||
"startLine": 123, | ||
"endLine": 123, | ||
"charOffset": -1, | ||
"byteOffset": -1, | ||
"message": { | ||
"text": "asdasd", | ||
"arguments": [] | ||
} | ||
} | ||
}, | ||
"logicalLocations": [], | ||
"annotations": [], | ||
"relationships": [] | ||
} | ||
], | ||
"stacks": [], | ||
"codeFlows": [], | ||
"graphs": [], | ||
"graphTraversals": [], | ||
"relatedLocations": [], | ||
"suppressions": [ | ||
{ | ||
"state": "accepted", | ||
"justification": "bla" | ||
} | ||
], | ||
"rank": -1.0, | ||
"attachments": [], | ||
"workItemUris": [], | ||
"fixes": [], | ||
"taxa": [] | ||
}, | ||
{ | ||
"ruleId": "abcdef", | ||
"ruleIndex": -1, | ||
"kind": "FAIL", | ||
"level": "note", | ||
"message": { | ||
"text": "asdasd", | ||
"arguments": [] | ||
}, | ||
"locations": [ | ||
{ | ||
"id": -1, | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/whatever/path.c", | ||
"index": -1 | ||
}, | ||
"region": { | ||
"startLine": 123, | ||
"endLine": 123, | ||
"charOffset": -1, | ||
"byteOffset": -1, | ||
"message": { | ||
"text": "asdasd", | ||
"arguments": [] | ||
} | ||
} | ||
}, | ||
"logicalLocations": [], | ||
"annotations": [], | ||
"relationships": [] | ||
} | ||
], | ||
"stacks": [], | ||
"codeFlows": [], | ||
"graphs": [], | ||
"graphTraversals": [], | ||
"relatedLocations": [], | ||
"suppressions": [ | ||
{ | ||
"state": "rejected", | ||
"justification": "bla" | ||
} | ||
], | ||
"rank": -1.0, | ||
"attachments": [], | ||
"workItemUris": [], | ||
"fixes": [], | ||
"taxa": [] | ||
}, | ||
{ | ||
"ruleId": "Cyclomatic complexity", | ||
"ruleIndex": -1, | ||
"kind": "FAIL", | ||
"level": "error", | ||
"message": { | ||
"text": "asdasd", | ||
"arguments": [] | ||
}, | ||
"locations": [ | ||
{ | ||
"id": -1, | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/whatever/path.c", | ||
"index": -1 | ||
}, | ||
"region": { | ||
"startLine": 123, | ||
"endLine": 123, | ||
"charOffset": -1, | ||
"byteOffset": -1, | ||
"message": { | ||
"text": "asdasd", | ||
"arguments": [] | ||
} | ||
} | ||
}, | ||
"logicalLocations": [], | ||
"annotations": [], | ||
"relationships": [] | ||
} | ||
], | ||
"stacks": [], | ||
"codeFlows": [], | ||
"graphs": [], | ||
"graphTraversals": [], | ||
"relatedLocations": [], | ||
"suppressions": [], | ||
"rank": -1.0, | ||
"attachments": [], | ||
"workItemUris": [], | ||
"fixes": [], | ||
"taxa": [] | ||
} | ||
], | ||
"runAggregates": [], | ||
"redactionTokens": [], | ||
"newlineSequences": [ | ||
"\r\n", | ||
"\n" | ||
], | ||
"threadFlowLocations": [], | ||
"taxonomies": [], | ||
"addresses": [], | ||
"translations": [], | ||
"policies": [], | ||
"webRequests": [], | ||
"webResponses": [] | ||
} | ||
], | ||
"inlineExternalProperties": [] | ||
} |