Skip to content

Commit a0965f3

Browse files
committed
JS: Also discard JSON, YAML, and XML
1 parent 4b57b44 commit a0965f3

File tree

1 file changed

+8
-1
lines changed
  • javascript/ql/lib/semmle/javascript/internal

1 file changed

+8
-1
lines changed

javascript/ql/lib/semmle/javascript/internal/Overlay.qll

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ private predicate isOverlay() { databaseMetadata("isOverlay", "true") }
77
overlay[local]
88
private string getFileFromEntity(@locatable node) {
99
exists(@location loc |
10-
hasLocation(node, loc) and
10+
hasLocation(node, loc)
11+
or
12+
json_locations(node, loc)
13+
or
14+
yaml_locations(node, loc)
15+
or
16+
xmllocations(node, loc)
17+
|
1118
result = getFileFromLocation(loc)
1219
)
1320
}

0 commit comments

Comments
 (0)