mirror of
https://github.com/github/codeql.git
synced 2026-04-20 22:44:52 +02:00
Use set literal instead of regex comparison
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import go
|
||||
|
||||
from Type t
|
||||
where t.getPackage().getName().regexpMatch("main|pkg1|pkg2")
|
||||
where t.getPackage().getName() = ["main", "pkg1", "pkg2"]
|
||||
select t.pp(), strictcount(t.getMethod(_))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import go
|
||||
|
||||
from Type t, string m
|
||||
where t.getPackage().getName().regexpMatch("main|pkg1|pkg2")
|
||||
where t.getPackage().getName() = ["main", "pkg1", "pkg2"]
|
||||
select t.pp(), m, t.getMethod(m)
|
||||
|
||||
Reference in New Issue
Block a user