MetaCredo. Check. Design. LowCohesion
(MetaCredo v0.1.0)
View Source
Detects modules where functions don't share data or variables, indicating the module lacks cohesion and may have multiple responsibilities. Consider splitting into focused modules.
Functions are grouped by the variables they reference. If the number of disjoint groups exceeds the threshold, the module has low cohesion.
Category: Software Design / Priority: normal
Configuration
Accepts the following parameters via .metacredo.exs:
min_functions- Minimum number of functions in a module before checking cohesion (default: 3) (default:3)max_disjoint_groups- Maximum allowed disjoint function groups (default: 2) (default:2)