mirror of
https://github.com/github/codeql.git
synced 2026-01-19 17:34:47 +01:00
17 lines
407 B
Plaintext
17 lines
407 B
Plaintext
/**
|
|
* @name Number of interfaces
|
|
* @description The number of interfaces in a compilation unit.
|
|
* @kind treemap
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @metricAggregate avg sum max
|
|
* @id java/interfaces-per-file
|
|
* @tags maintainability
|
|
*/
|
|
|
|
import java
|
|
|
|
from CompilationUnit f, int n
|
|
where n = count(Interface i | i.fromSource() and i.getCompilationUnit() = f)
|
|
select f, n order by n desc
|