mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +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:
@@ -10,11 +10,12 @@
|
||||
|
||||
import python
|
||||
import external.VCS
|
||||
private import LegacyPointsTo
|
||||
|
||||
from Module m
|
||||
from ModuleMetrics m
|
||||
where
|
||||
exists(Commit e |
|
||||
e.getAnAffectedFile() = m.getFile() and e.daysToNow() <= 180 and not artificialChange(e)
|
||||
) and
|
||||
exists(m.getMetrics().getNumberOfLinesOfCode())
|
||||
exists(m.getNumberOfLinesOfCode())
|
||||
select m, 1
|
||||
|
||||
Reference in New Issue
Block a user