mirror of
https://github.com/github/codeql.git
synced 2026-03-27 01:38:22 +01:00
19 lines
479 B
Plaintext
19 lines
479 B
Plaintext
/**
|
|
* @name Cyclomatic complexity of functions
|
|
* @description The number of possible execution paths through a method or constructor.
|
|
* @kind treemap
|
|
* @treemap.warnOn highValues
|
|
* @metricType callable
|
|
* @metricAggregate avg max sum
|
|
* @id java/cyclomatic-complexity-per-function
|
|
* @tags testability
|
|
* complexity
|
|
* maintainability
|
|
*/
|
|
|
|
import java
|
|
|
|
from Callable c
|
|
where c.fromSource()
|
|
select c, c.getMetrics().getCyclomaticComplexity() as n order by n desc
|