mirror of
https://github.com/github/codeql.git
synced 2026-01-18 17:04:50 +01:00
18 lines
381 B
Plaintext
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
|