Files
codeql/python/ql/src/Metrics/ClassAfferentCoupling.ql
2020-03-30 11:59:10 +02:00

17 lines
383 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
from ClassMetrics cls
select cls, cls.getAfferentCoupling() as n order by n desc