mirror of
https://github.com/github/codeql.git
synced 2026-02-06 18:21:07 +01:00
17 lines
363 B
Plaintext
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
|