mirror of
https://github.com/github/codeql.git
synced 2026-05-13 18:59:27 +02:00
Some files that will change in #1736 have been spared. ./build -j4 target/jars/qlformat find ql/cpp/ql -name "*.ql" -print0 | xargs -0 target/jars/qlformat --input find ql/cpp/ql -name "*.qll" -print0 | xargs -0 target/jars/qlformat --input (cd ql && git checkout 'cpp/ql/src/semmle/code/cpp/ir/implementation/**/*SSA*.qll') buildutils-internal/scripts/pr-checks/sync-identical-files.py --latest
22 lines
622 B
Plaintext
22 lines
622 B
Plaintext
/**
|
|
* @name Number of co-committed files
|
|
* @description The average number of other files that are touched
|
|
* whenever a file is affected by a commit.
|
|
* @kind treemap
|
|
* @id cpp/historical-number-of-co-commits
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @metricAggregate avg min max
|
|
* @tags external-data
|
|
* @deprecated
|
|
*/
|
|
|
|
import cpp
|
|
import external.VCS
|
|
|
|
int committedFiles(Commit commit) { result = count(commit.getAnAffectedFile()) }
|
|
|
|
from File f
|
|
where exists(f.getMetrics().getNumberOfLinesOfCode())
|
|
select f, avg(Commit commit | commit.getAnAffectedFile() = f | committedFiles(commit) - 1)
|