Mkohm / detekt-hint

Detection of design principle violations in Kotlin as a plugin to detekt.
https://mkohm.github.io/detekt-hint/
80 stars 3 forks source link

Rule: Analysing LCOM value (Lack Of Cohesion of Methods) (Sign of Single Responsibility Principle violation) #24

Closed Mkohm closed 4 years ago

Mkohm commented 4 years ago

https://blog.ndepend.com/lack-of-cohesion-methods/

Suggestion: Can report classes with low lcom and which methods with low cohesion, that are subject for refactoring.

Mkohm commented 4 years ago

Test classes with protected methods etc. These will probably cause issues at this point. Also include constructor in the calculation.