Files
codeql/cpp/ql/src/Metrics/Functions/FunNumberOfParameters.ql
2018-08-02 17:53:23 +01:00

17 lines
426 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()