mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
The ones that no longer require points-to no longer import `LegacyPointsTo`. The ones that do use the specific `...MetricsWithPointsTo` classes that are applicable.
21 lines
472 B
Plaintext
21 lines
472 B
Plaintext
/**
|
|
* @name Recently changed files
|
|
* @description Number of files recently edited
|
|
* @kind treemap
|
|
* @id py/historical-number-of-recent-changed-files
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @metricAggregate avg min max
|
|
*/
|
|
|
|
import python
|
|
import external.VCS
|
|
|
|
from ModuleMetrics m
|
|
where
|
|
exists(Commit e |
|
|
e.getAnAffectedFile() = m.getFile() and e.daysToNow() <= 180 and not artificialChange(e)
|
|
) and
|
|
exists(m.getNumberOfLinesOfCode())
|
|
select m, 1
|