Files
codeql/python/ql/src/Metrics/ClassEfferentCoupling.ql
Taus e8de8433f4 Python: Update all metrics-dependant queries
The ones that no longer require points-to no longer import
`LegacyPointsTo`. The ones that do use the specific
`...MetricsWithPointsTo` classes that are applicable.
2026-02-19 12:32:27 +00:00

18 lines
429 B
Plaintext

/**
* @name Outgoing class dependencies
* @description The number of classes that this class depends upon.
* @kind treemap
* @id py/efferent-coupling-per-class
* @treemap.warnOn highValues
* @metricType reftype
* @metricAggregate avg max
* @tags testability
* modularity
*/
import python
private import LegacyPointsTo
from ClassMetricsWithPointsTo cls
select cls, cls.getEfferentCoupling() as n order by n desc