Files
codeql/cpp/ql/src/Metrics/Namespaces/HighEfferentCouplingNamespaces.ql
2022-09-14 16:35:24 +01:00

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