Skip to content

chant dev check-lexicon

chant dev check-lexicon <dir> [--format json]

chant dev check-lexicon evaluates a lexicon directory against three tiers of completeness checks:

  • Tier 1 (Required) — Must all pass. Exit code 1 on failure.
  • Tier 2 (Recommended) — Warnings for missing features.
  • Tier 3 (Thoroughness) — Informational, tracks depth of coverage.

The checks are pure filesystem checks — file presence, directory contents, and simple content inspection. No lexicon code is executed.

FlagDescription
--format jsonOutput CheckResult as JSON instead of a colored table
Terminal window
# Check the AWS lexicon
chant dev check-lexicon lexicons/aws
# Check with JSON output (for CI)
chant dev check-lexicon lexicons/aws --format json
# Check current directory
chant dev check-lexicon .
  • 0 — All tier-1 checks pass
  • 1 — One or more tier-1 checks fail