mirror of
https://github.com/github/codeql.git
synced 2026-07-29 06:46:46 +02:00
17 lines
406 B
Plaintext
17 lines
406 B
Plaintext
/**
|
|
* @name Number of authors
|
|
* @description Number of distinct authors for each file
|
|
* @kind treemap
|
|
* @id py/historical-number-of-authors
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @metricAggregate avg min max
|
|
*/
|
|
|
|
import python
|
|
import external.VCS
|
|
|
|
from Module m
|
|
where exists(m.getMetrics().getNumberOfLinesOfCode())
|
|
select m, count(Author author | author.getAnEditedFile() = m.getFile())
|