Files
codeql/python/ql/src/Metrics/LackofCohesionInMethodsCK.ql
Taus e8de8433f4 Python: Update all metrics-dependant queries
The ones that no longer require points-to no longer import
`LegacyPointsTo`. The ones that do use the specific
`...MetricsWithPointsTo` classes that are applicable.
2026-02-19 12:32:27 +00:00

15 lines
387 B
Plaintext

/**
* @name Lack of Cohesion in Methods (CK)
* @description Lack of cohesion in the methods of a class, as defined by Chidamber and Kemerer.
* @kind treemap
* @id py/lack-of-cohesion-chidamber-kemerer
* @treemap.warnOn highValues
* @metricType reftype
* @metricAggregate avg max
*/
import python
from ClassMetrics cls
select cls, cls.getLackOfCohesionCK() as n order by n desc