mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Initial commit of Python queries and QL libraries.
This commit is contained in:
committed by
Mark Shannon
parent
90c75cd362
commit
5f58824d1b
18
python/ql/src/Metrics/ModuleEfferentCoupling.ql
Normal file
18
python/ql/src/Metrics/ModuleEfferentCoupling.ql
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @name Outgoing module dependencies
|
||||
* @description The number of modules that this module depends upon.
|
||||
* @kind treemap
|
||||
* @id py/efferent-coupling-per-file
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg max
|
||||
* @tags testability
|
||||
* modularity
|
||||
*/
|
||||
|
||||
import python
|
||||
|
||||
from ModuleMetrics m
|
||||
select m, m.getEfferentCoupling() as n
|
||||
order by n desc
|
||||
|
||||
Reference in New Issue
Block a user