Files
codeql/python/ql/src/Metrics/History/HNumberOfRecentChangedFiles.ql
Taus e8de8433f4 Python: Update all metrics-dependant queries
The ones that no longer require points-to no longer import
`LegacyPointsTo`. The ones that do use the specific
`...MetricsWithPointsTo` classes that are applicable.
2026-02-19 12:32:27 +00:00

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