Files
codeql/python/ql/src/Metrics/ClassAfferentCoupling.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
425 B
Plaintext

/**
* @name Incoming class dependencies
* @description The number of classes that depend on a class.
* @kind treemap
* @id py/afferent-coupling-per-class
* @treemap.warnOn highValues
* @metricType reftype
* @metricAggregate avg max
* @tags changeability
* modularity
*/
import python
private import LegacyPointsTo
from ClassMetricsWithPointsTo cls
select cls, cls.getAfferentCoupling() as n order by n desc