mirror of
https://github.com/github/codeql.git
synced 2026-05-10 01:10:09 +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
18 lines
427 B
Plaintext
18 lines
427 B
Plaintext
/**
|
|
* @name Number of parameters per function
|
|
* @description The number of formal parameters for each function.
|
|
* @kind treemap
|
|
* @id cpp/number-of-parameters-per-function
|
|
* @treemap.warnOn highValues
|
|
* @metricType callable
|
|
* @metricAggregate avg max
|
|
* @tags testability
|
|
* maintainability
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from Function f
|
|
where strictcount(f.getEntryPoint()) = 1
|
|
select f, f.getMetrics().getNumberOfParameters()
|