Documentation Index
Fetch the complete documentation index at: https://mehen.ophi.dev/llms.txt
Use this file to discover all available pages before exploring further.
mehen reports three families of source-code metrics, all computed from the language analyzer’s parse
tree. Every metric is described on its own page with the canonical formula, what mehen emits, and links
to authoritative references.
Size
| Metric | Key | Description |
|---|
| SLOC | loc.sloc | Total physical lines, including blanks and comments. |
| PLOC | loc.ploc | Physical instruction lines (no blanks/comments). |
| LLOC | loc.lloc | Logical lines — statements as defined per language. |
| CLOC | loc.cloc | Comment lines (line + block + doc comments). |
| Blank | loc.blank | Whitespace-only lines. |
The umbrella is described on the LOC family page.
Complexity
| Metric | Key | Description |
|---|
| Cyclomatic complexity | cyclomatic | McCabe’s count of linearly independent paths. |
| Cognitive complexity | cognitive | Sonar’s “how hard to understand” complexity. |
| Weighted Methods per Class | wmc | Sum of cyclomatic complexity across class methods. |
| Halstead suite | halstead.* | Volume, difficulty, effort, bugs, time. |
| Maintainability Index | mi.* | Original, Visual Studio, and SEI variants. |
| ABC | abc.* | Assignments, branches, conditions, magnitude. |
Function and class shape
| Metric | Key | Description |
|---|
| NOM | nom | Number of methods (functions + closures). |
| NARGS | nargs | Argument count per function/method. |
| NEXITS | nexit | Exit-point count per function/method. |
| NPA | npa | Number of public attributes (classes/interfaces). |
| NPM | npm | Number of public methods (classes/interfaces). |
Spaces
Every metric is also reported per space — the language-aware container for a function, method, class,
trait, or module. See Concepts → Spaces for how containers nest and how metric
aggregation rolls up to the file.
Markdown is separate
Markdown documentation gets its own metric family — DMI, MRPC, MCC, link debt, filler/lazy risk, etc. —
because functions, classes, and statements do not exist in prose. See
Markdown metrics.