Skip to content

Commit c230c9f

Browse files
committed
Consider only Java files in importsAndroidModule
1 parent 7684781 commit c230c9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ql/ql/src/queries/style/AndroidIdPrefix.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import ql
1111

1212
/** Holds if `t` transitively imports an Android module. */
1313
predicate importsAndroidModule(TopLevel t) {
14+
t.getFile() =
15+
any(YAML::QLPack pack | pack.getExtractor() = "java").getADependency*().getAFileInPack() and
1416
exists(Import i | t.getAnImport() = i |
1517
i.getImportString().toLowerCase().matches("%android%")
1618
or

0 commit comments

Comments
 (0)