JS: Also discard JSON, YAML, and XML

This commit is contained in:
Asger F
2025-11-18 13:29:00 +01:00
parent 4b57b4418f
commit a0965f33e3

View File

@@ -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)
) )
} }