Files
codeql/python/ql/src/Metrics/LackofCohesionInMethodsHM.ql
2018-11-19 15:10:42 +00:00

17 lines
368 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