-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1600: Matched result should use current suppressions.
- Loading branch information
Larry Golding
committed
Aug 6, 2019
1 parent
0151b67
commit 9ecf550
Showing
7 changed files
with
242 additions
and
14 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
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
91 changes: 91 additions & 0 deletions
91
src/Test.UnitTests.Sarif/TestData/Baseline/SuppressionTestCurrent.sarif
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,91 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.4.json", | ||
"version": "2.1.0", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "CodeScanner" | ||
} | ||
}, | ||
"results": [ | ||
{ | ||
"ruleId": "TST0001", | ||
"message": { | ||
"text": "New suppressed result." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "file:///C:/code/file1.c" | ||
} | ||
} | ||
} | ||
], | ||
"suppressions": [ | ||
{ | ||
"kind": "external" | ||
} | ||
] | ||
}, | ||
{ | ||
"ruleId": "TST0002", | ||
"message": { | ||
"text": "Existing, originally unsuppressed result." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "file:///C:/code/file2.c" | ||
} | ||
} | ||
} | ||
], | ||
"suppressions": [ | ||
{ | ||
"kind": "external" | ||
} | ||
] | ||
}, | ||
{ | ||
"ruleId": "TST0003", | ||
"message": { | ||
"text": "Result suppressed in both runs." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "file:///C:/code/file3.c" | ||
} | ||
} | ||
} | ||
], | ||
"suppressions": [ | ||
{ | ||
"kind": "external" | ||
} | ||
] | ||
}, | ||
{ | ||
"ruleId": "TST0004", | ||
"message": { | ||
"text": "Existing, originally suppressed result." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "file:///C:/code/file4.c" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"columnKind": "utf16CodeUnits" | ||
} | ||
] | ||
} |
71 changes: 71 additions & 0 deletions
71
src/Test.UnitTests.Sarif/TestData/Baseline/SuppressionTestPrevious.sarif
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,71 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.4.json", | ||
"version": "2.1.0", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "CodeScanner" | ||
} | ||
}, | ||
"results": [ | ||
{ | ||
"ruleId": "TST0002", | ||
"message": { | ||
"text": "Existing, originally unsuppressed result." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "file:///C:/code/file2.c" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"ruleId": "TST0003", | ||
"message": { | ||
"text": "Result suppressed in both runs." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "file:///C:/code/file3.c" | ||
} | ||
} | ||
} | ||
], | ||
"suppressions": [ | ||
{ | ||
"kind": "external" | ||
} | ||
] | ||
}, | ||
{ | ||
"ruleId": "TST0004", | ||
"message": { | ||
"text": "Existing, originally suppressed result." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "file:///C:/code/file4.c" | ||
} | ||
} | ||
} | ||
], | ||
"suppressions": [ | ||
{ | ||
"kind": "external" | ||
} | ||
] | ||
} | ||
], | ||
"columnKind": "utf16CodeUnits" | ||
} | ||
] | ||
} |
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