Reference

Documentation

Every km command with its options, its formulas and sample output, plus the configuration and the supported languages.

Getting started

Installation
Install the km binary and the completions for your shell.
Configuration
The .kimun.toml file: thresholds, quality gates and how to generate it with km init.

Static metrics

km score
Code health score
km loc
Count lines of code
km dups
Detect duplicate code
km cycom
Cyclomatic complexity
km cogcom
Cognitive complexity
km indent
Indentation complexity
km hal
Halstead complexity metrics
km mi
Maintainability Index (Visual Studio variant)
km miv
Maintainability Index (verifysoft variant)
km smells
Code smell detection
km deps
Dependency graph analysis
km report
Comprehensive metrics report

History in git

km hotspots
Hotspot analysis
km churn
Code churn analysis
km knowledge
Code ownership analysis
km authors
Per-author ownership summary
km tc
Temporal coupling analysis
km impact
Impact of a diff
km age
File age analysis

Tools

km ai
Skill and analysis for coding agents

Reference

Supported languages
The languages Kimün recognizes and how it counts each file.
References
The books and papers behind the metrics of Kimün.