mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
17 lines
361 B
Plaintext
17 lines
361 B
Plaintext
/**
|
|
* @name Classes per file
|
|
* @description Measures the number of classes in a file
|
|
* @kind treemap
|
|
* @id py/classes-per-file
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @metricAggregate avg sum max
|
|
* @tags maintainability
|
|
*/
|
|
|
|
import python
|
|
|
|
from Module m, int n
|
|
where n = count(Class c | c.getEnclosingModule() = m)
|
|
select m, n order by n desc
|