mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Python: Fix all metrics-related compilation failures
In hindsight, having a `.getMetrics()` method that just returns `this` is somewhat weird. It's possible that it predates the existence of the inline cast, however.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user