mirror of
https://github.com/github/codeql.git
synced 2026-05-20 06:07:07 +02:00
The ones that no longer require points-to no longer import `LegacyPointsTo`. The ones that do use the specific `...MetricsWithPointsTo` classes that are applicable.
18 lines
425 B
Plaintext
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
|