Files
codeql/java/ql/src/Metrics/Files/FEfferentCoupling.ql
Anders Schack-Mulligen 9b7a728609 Java: Autoformat.
2020-01-29 12:16:25 +01:00

25 lines
605 B
Plaintext

/**
* @name Outgoing file dependencies
* @description The number of compilation units on which a compilation unit depends.
* @kind treemap
* @treemap.warnOn highValues
* @metricType file
* @metricAggregate avg max
* @id java/outgoing-file-dependencies
* @tags testability
* modularity
* maintainability
*/
import java
from CompilationUnit f, int n
where
n =
count(File g |
exists(Class c | c.fromSource() and c.getCompilationUnit() = g |
exists(Class d | d.fromSource() and d.getCompilationUnit() = f | depends(d, c))
)
)
select f, n order by n desc