mirror of
https://github.com/github/codeql.git
synced 2026-05-16 04:09:27 +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
420 B
Plaintext
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
|