mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Python: Modernise import related queries
Except for Metrics/Dependencies/ExternalDependenciesSourceLinks.ql, since it is rather tricky :D
This commit is contained in:
@@ -11,6 +11,6 @@
|
||||
*/
|
||||
import python
|
||||
|
||||
from ModuleObject m, int n
|
||||
where n = count(ModuleObject imp | imp = m.getAnImportedModule())
|
||||
select m.getModule(), n
|
||||
from ModuleValue m, int n
|
||||
where n = count(ModuleValue imp | imp = m.getAnImportedModule())
|
||||
select m.getScope(), n
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
*/
|
||||
import python
|
||||
|
||||
from ModuleObject m, int n
|
||||
where n = count(ModuleObject imp | imp = m.getAnImportedModule+() and imp != m)
|
||||
select m.getModule(), n
|
||||
from ModuleValue m, int n
|
||||
where n = count(ModuleValue imp | imp = m.getAnImportedModule+() and imp != m)
|
||||
select m.getScope(), n
|
||||
|
||||
Reference in New Issue
Block a user