Skip to content
CodArchthe living map of the architecture
ESEN

codarch inspect

Summarises a cc.json snapshot in the terminal or as JSON.

Ventana de terminal
codarch inspect <file.cc.json[.gz]> [options]
OptionWhat it does
--jsonMachine-readable output.
--top <n>Files in the ranking. Defaults to 5.
--metric <name>Ranking metric. Defaults to rloc.
-h, --helpHelp.
-v, --versionVersion.

Reads the snapshot (.gz too) and shows its metadata, stats and the top N files for the metric. With --json it prints { file, meta, stats, metric, top }.

Ventana de terminal
codarch inspect .codarch/snapshot.cc.json
codarch inspect .codarch/snapshot.cc.json --top 10 --metric maxComplexity --json
CodeMeaning
0Summary printed.
1Missing, unreadable or invalid cc.json file, or invalid option.