mirror of
https://github.com/github/codeql.git
synced 2026-01-03 01:30:19 +01:00
15 lines
366 B
Plaintext
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
|