Files
codeql/python/ql/src/Metrics/ModuleAfferentCoupling.ql
2018-11-19 15:10:42 +00:00

19 lines
379 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
from ModuleMetrics m
select m, m.getAfferentCoupling() as n
order by n desc