Skip to main content

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

MetricKeyDescription
SLOCloc.slocTotal physical lines, including blanks and comments.
PLOCloc.plocPhysical instruction lines (no blanks/comments).
LLOCloc.llocLogical lines — statements as defined per language.
CLOCloc.clocComment lines (line + block + doc comments).
Blankloc.blankWhitespace-only lines.
The umbrella is described on the LOC family page.

Complexity

MetricKeyDescription
Cyclomatic complexitycyclomaticMcCabe’s count of linearly independent paths.
Cognitive complexitycognitiveSonar’s “how hard to understand” complexity.
Weighted Methods per ClasswmcSum of cyclomatic complexity across class methods.
Halstead suitehalstead.*Volume, difficulty, effort, bugs, time.
Maintainability Indexmi.*Original, Visual Studio, and SEI variants.
ABCabc.*Assignments, branches, conditions, magnitude.

Function and class shape

MetricKeyDescription
NOMnomNumber of methods (functions + closures).
NARGSnargsArgument count per function/method.
NEXITSnexitExit-point count per function/method.
NPAnpaNumber of public attributes (classes/interfaces).
NPMnpmNumber 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.