Files
codeql/python/ql/src/Metrics/History/HNumberOfRecentChangedFiles.ql
Taus Brock-Nannestad f07a7bf8cf Python: Autoformat everything using qlformat.
Will need subsequent PRs fixing up test failures (due to deprecated
methods moving around), but other than that everything should be
straight-forward.
2020-07-07 15:43:52 +02:00

21 lines
478 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 Module m
where
exists(Commit e |
e.getAnAffectedFile() = m.getFile() and e.daysToNow() <= 180 and not artificialChange(e)
) and
exists(m.getMetrics().getNumberOfLinesOfCode())
select m, 1