CSP-Q303: Maintainability Index Below Minimum¶
Category: Quality
Severity: MEDIUM
Description¶
This rule reports files whose Maintainability Index (MI) is below the configured min_mi threshold.
Trigger Example¶
# Large, highly complex module with many branches and low readability.
# CytoScnPy computes MI and emits CSP-Q303 when below configured minimum.
Recommended Refactor¶
- Split large modules into focused units.
- Reduce branching complexity.
- Improve naming and remove dead paths.
- Add tests before refactoring risky sections.