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

/**
* @name Incoming module dependencies
* @description The number of modules that depend on a module.
* @kind treemap
* @id py/afferent-coupling-per-file
* @treemap.warnOn highValues
* @metricType file
* @metricAggregate avg max
* @tags maintainability
* modularity
*/
import python
private import LegacyPointsTo
from ModuleMetricsWithPointsTo m
select m, m.getAfferentCoupling() as n order by n desc