Skip to content

jouet diag ​

  • Usage: jouet diag <SUBCOMMAND>

Report the errors and warnings in files you changed, through hk

With an hk config (hk.pkl), runs hk run check --safe --format json on exactly the files given, or with --changed (the default) those that differ from HEAD or are untracked, and prints hk's normalised findings: file, line, column, severity, rule, message and the step that found it. A step that sets no diagnostic_format is reported with its status and the end of its output. Without an hk config, falls back to cargo clippy, ruff or shellcheck in their JSON modes, or says diagnostics are unavailable. Exits 0 when clean, 1 with findings, 4 when hk refused to run (--safe rejects commands whose effect is unknown or destructive) or nothing can check the files.

Flags ​

  • -h --help — Print help

Subcommands ​

MIT LicenseCopyright © 2026jdx.dev