mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JS: Also discard JSON, YAML, and XML
This commit is contained in:
@@ -7,7 +7,14 @@ private predicate isOverlay() { databaseMetadata("isOverlay", "true") }
|
|||||||
overlay[local]
|
overlay[local]
|
||||||
private string getFileFromEntity(@locatable node) {
|
private string getFileFromEntity(@locatable node) {
|
||||||
exists(@location loc |
|
exists(@location loc |
|
||||||
hasLocation(node, loc) and
|
hasLocation(node, loc)
|
||||||
|
or
|
||||||
|
json_locations(node, loc)
|
||||||
|
or
|
||||||
|
yaml_locations(node, loc)
|
||||||
|
or
|
||||||
|
xmllocations(node, loc)
|
||||||
|
|
|
||||||
result = getFileFromLocation(loc)
|
result = getFileFromLocation(loc)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user