Files
codeql/python/ql/src/Metrics/LackofCohesionInMethodsCK.ql
Taus 24a29f46be Python: Fix all metrics-related compilation failures
In hindsight, having a `.getMetrics()` method that just returns `this`
is somewhat weird. It's possible that it predates the existence of the
inline cast, however.
2025-11-26 21:28:51 +00:00

16 lines
417 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
private import LegacyPointsTo
from ClassMetrics cls
select cls, cls.getLackOfCohesionCK() as n order by n desc