maintainability index
- original [10]:
- Visual Studio derivate:
- V: the Halstead volume
- G: the total cyclomatic complexity
- L: the number of source lines of code
| score | maintainability |
|---|---|
| 0-10 | low |
| 10-20 | moderate |
| 20+ | high |
| score | maintainability |
|---|---|
| 0–10 | low |
| 10–20 | moderate |
| 20–30 | good |
| 30–40 | very good |
| 40–100 | excellent |
issues: ease of computation, language independence, understandability, explainability [12]
read more in Think Twice Before Using the “Maintainability Index” [13]
comment related smells
1. obsolete comment
version n-1 (OOP)
version n (FP)
these are actually noise comments, so they are bad in the first place