mirror of
https://github.com/github/codeql.git
synced 2026-01-20 01:44:54 +01:00
18 lines
392 B
Plaintext
18 lines
392 B
Plaintext
/**
|
|
* @name Abstract namespaces
|
|
* @description Finds namespaces that have an abstractness greater than 0.20.
|
|
* @kind chart
|
|
* @id cpp/abstract-namespaces
|
|
* @chart.type bar
|
|
* @tags maintainability
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from Namespace n, float c
|
|
where
|
|
n.fromSource() and
|
|
c = n.getMetrics().getAbstractness() and
|
|
c > 0.2
|
|
select n as namespace, c as abstractness order by abstractness desc
|