mirror of
https://github.com/github/codeql.git
synced 2026-01-18 17:04:50 +01:00
19 lines
452 B
Plaintext
19 lines
452 B
Plaintext
/**
|
|
* @name High efferent coupling namespaces
|
|
* @description Finds namespaces that have an efferent coupling greater than 20.
|
|
* @kind chart
|
|
* @id cpp/high-efferent-coupling-namespaces
|
|
* @chart.type bar
|
|
* @tags maintainability
|
|
* modularity
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from Namespace n, int c
|
|
where
|
|
n.fromSource() and
|
|
c = n.getMetrics().getEfferentCoupling() and
|
|
c > 20
|
|
select n as namespace, c as efferentCoupling order by efferentCoupling desc
|