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

18 lines
381 B
Plaintext

/**
* @name Stable namespaces
* @description Finds namespaces that have an instability lower than 0.2.
* @kind chart
* @id cpp/stable-namespaces
* @chart.type bar
* @tags maintainability
*/
import cpp
from Namespace n, float c
where
n.fromSource() and
c = n.getMetrics().getInstability() and
c < 0.2
select n as namespace, c as instability order by instability desc