mirror of
https://github.com/github/codeql.git
synced 2026-06-26 23:27:06 +02:00
19 lines
481 B
Plaintext
19 lines
481 B
Plaintext
/**
|
|
* @name Namespaces far from main line
|
|
* @description Finds namespaces that do not have a good balance between
|
|
* abstractness and stability.
|
|
* @kind chart
|
|
* @id cpp/high-distance-from-main-line-namespaces
|
|
* @chart.type bar
|
|
* @tags maintainability
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from Namespace n, float c
|
|
where
|
|
n.fromSource() and
|
|
c = n.getMetrics().getDistanceFromMain() and
|
|
c > 0.7
|
|
select n as namespace, c as distanceFromMainline order by distanceFromMainline desc
|