Class cohesion DevCenter
MSALA DevCenter that grades the maintainability, cohesion, and test gaps of each repository, based on the class quality metrics and test gaps computed by Moderne Prethink.
Average Class Maintainability
The maintainability index (0-100) averaged across all classes in each repository.
F (0+) → D (20+) → C (40+) → B (60+) → A (80+)
Average Class Cohesion
LCOM4 (Lack of Cohesion of Methods, version 4) averaged across all classes in each repository; lower is more cohesive.
LOW (10+) → MEDIUM (3+) → HIGH (0+)
Test Gaps Risk
The risk scores of public, non-trivial methods without tests, summed per repository.
LOW (0+) → MEDIUM (3+) → HIGH (10+)
The DevCenter also counts lines of code per repository and committers active in the last 90 days. See the DevCenter documentation to customize.
io. moderne. devcenter. ClassCohesionDevCentermod run . --recipe= io. moderne. devcenter. ClassCohesionDevCenterInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.