Files
codeql/python/ql/src/Metrics/LackofCohesionInMethodsHM.ql
2020-03-30 11:59:10 +02:00

15 lines
366 B
Plaintext

/**
* @name Lack of Cohesion in a Class (HM)
* @description Lack of cohesion of a class, as defined by Hitz and Montazeri.
* @kind treemap
* @id py/lack-of-cohesion-hitz-montazeri
* @treemap.warnOn highValues
* @metricType reftype
* @metricAggregate avg max
*/
import python
from ClassMetrics cls
select cls, cls.getLackOfCohesionHM() as n order by n desc