mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +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]
|
||||
private string getFileFromEntity(@locatable node) {
|
||||
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)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user