mirror of
https://github.com/github/codeql.git
synced 2026-07-20 18:58:36 +02:00
17 lines
528 B
Plaintext
17 lines
528 B
Plaintext
/**
|
|
* @name Hub classes
|
|
* @description Shows coupling between classes. Large, red, boxes are hub types that depend on many other classes
|
|
* and are depended on by many other classes.
|
|
* @kind table
|
|
* @id cpp/architecture/hub-classes
|
|
* @treemap.warnOn highValues
|
|
* @tags maintainability
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from Class c
|
|
where c.fromSource()
|
|
select c as Class, c.getMetrics().getAfferentCoupling() as AfferentCoupling,
|
|
c.getMetrics().getEfferentSourceCoupling() as EfferentCoupling order by AfferentCoupling desc
|