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

17 lines
363 B
Plaintext

/**
* @name Concrete namespaces
* @description Finds namespaces that have an abstractness equal to 0.
* @kind tree
* @id cpp/concrete-namespaces
* @tags maintainability
*/
import cpp
from Namespace n, float c
where
n.fromSource() and
c = n.getMetrics().getAbstractness() and
c = 0
select n as namespace, c as abstractness order by abstractness desc