mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
add support for the strip-json-comments library
This commit is contained in:
@@ -97,6 +97,7 @@ typeInferenceMismatch
|
||||
| json-stringify.js:2:16:2:23 | source() | json-stringify.js:34:8:34:51 | replica ... ource)) |
|
||||
| json-stringify.js:2:16:2:23 | source() | json-stringify.js:36:8:36:47 | require ... source) |
|
||||
| json-stringify.js:2:16:2:23 | source() | json-stringify.js:39:8:39:37 | jc.stri ... ource)) |
|
||||
| json-stringify.js:2:16:2:23 | source() | json-stringify.js:42:8:42:51 | JSON.st ... urce))) |
|
||||
| json-stringify.js:3:15:3:22 | source() | json-stringify.js:8:8:8:31 | jsonStr ... (taint) |
|
||||
| nested-props.js:4:13:4:20 | source() | nested-props.js:5:10:5:14 | obj.x |
|
||||
| nested-props.js:9:18:9:25 | source() | nested-props.js:10:10:10:16 | obj.x.y |
|
||||
|
||||
@@ -37,4 +37,7 @@ function foo() {
|
||||
|
||||
const jc = require('json-cycle');
|
||||
sink(jc.stringify(jc.parse(source))); // NOT OK
|
||||
|
||||
const stripper = require("strip-json-comments");
|
||||
sink(JSON.stringify(JSON.parse(stripper(source)))); // NOT OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user