mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
Initial commit of Python queries and QL libraries.
This commit is contained in:
committed by
Mark Shannon
parent
90c75cd362
commit
5f58824d1b
16
python/ql/src/Metrics/LackofCohesionInMethodsCK.ql
Normal file
16
python/ql/src/Metrics/LackofCohesionInMethodsCK.ql
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @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
|
||||
Reference in New Issue
Block a user