-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore suppressed issues in sarif reports
- Loading branch information
1 parent
a814e87
commit a203a21
Showing
3 changed files
with
143 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
123 changes: 123 additions & 0 deletions
123
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,123 @@ | ||
{ | ||
"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": "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": [] | ||
} |