mirror of
https://github.com/github/codeql.git
synced 2026-04-04 22:58:16 +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
429 B
Plaintext
18 lines
429 B
Plaintext
/**
|
|
* @name Outgoing class dependencies
|
|
* @description The number of classes that this class depends upon.
|
|
* @kind treemap
|
|
* @id py/efferent-coupling-per-class
|
|
* @treemap.warnOn highValues
|
|
* @metricType reftype
|
|
* @metricAggregate avg max
|
|
* @tags testability
|
|
* modularity
|
|
*/
|
|
|
|
import python
|
|
private import LegacyPointsTo
|
|
|
|
from ClassMetricsWithPointsTo cls
|
|
select cls, cls.getEfferentCoupling() as n order by n desc
|