Consider only Java files in importsAndroidModule

This commit is contained in:
Tony Torralba
2023-06-20 15:30:46 +02:00
parent 768478103c
commit c230c9f793

View File

@@ -11,6 +11,8 @@ import ql
/** Holds if `t` transitively imports an Android module. */
predicate importsAndroidModule(TopLevel t) {
t.getFile() =
any(YAML::QLPack pack | pack.getExtractor() = "java").getADependency*().getAFileInPack() and
exists(Import i | t.getAnImport() = i |
i.getImportString().toLowerCase().matches("%android%")
or