Merge pull request #20739 from github/tausbn/python-remove-top-level-points-to-imports

Python: Hide points-to imports in `python.qll`
This commit is contained in:
Taus
2025-12-05 14:24:41 +01:00
committed by GitHub
284 changed files with 690 additions and 430 deletions

View File

@@ -5,6 +5,7 @@
import python
import meta.MetaMetrics
private import LegacyPointsTo
newtype TTarget =
TFunction(Function func) or

View File

@@ -1,15 +1,15 @@
import python
private import LegacyPointsTo
from string msg, int cnt, int sort
where
sort = 0 and
msg = "Lines of code in DB" and
cnt = sum(Module m | | m.getMetrics().getNumberOfLinesOfCode())
cnt = sum(ModuleMetrics m | | m.getNumberOfLinesOfCode())
or
sort = 1 and
msg = "Lines of code in repo" and
cnt =
sum(Module m | exists(m.getFile().getRelativePath()) | m.getMetrics().getNumberOfLinesOfCode())
cnt = sum(ModuleMetrics m | exists(m.getFile().getRelativePath()) | m.getNumberOfLinesOfCode())
or
sort = 2 and
msg = "Files" and