mirror of
https://github.com/github/codeql.git
synced 2026-04-20 22:44:52 +02:00
Consider only Java files in importsAndroidModule
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user