зеркало из https://github.com/github/codeql.git
Update ql/ql/src/queries/style/AndroidIdPrefix.ql
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Родитель
c230c9f793
Коммит
3c60f52a1b
|
@ -12,7 +12,7 @@ import ql
|
||||||
/** Holds if `t` transitively imports an Android module. */
|
/** Holds if `t` transitively imports an Android module. */
|
||||||
predicate importsAndroidModule(TopLevel t) {
|
predicate importsAndroidModule(TopLevel t) {
|
||||||
t.getFile() =
|
t.getFile() =
|
||||||
any(YAML::QLPack pack | pack.getExtractor() = "java").getADependency*().getAFileInPack() and
|
any(YAML::QLPack pack | pack.getADependency*().getExtractor() = "java").getAFileInPack() and
|
||||||
exists(Import i | t.getAnImport() = i |
|
exists(Import i | t.getAnImport() = i |
|
||||||
i.getImportString().toLowerCase().matches("%android%")
|
i.getImportString().toLowerCase().matches("%android%")
|
||||||
or
|
or
|
||||||
|
|
Загрузка…
Ссылка в новой задаче