Skip to content

CLI Reference

Terminal window
janitor [--tool <name>] [--auto-commit | --no-commit]
FlagDescription
--tool <name>Run only one tool.
--auto-commitForce commit creation after fixes are applied.
--no-commitForce no commit creation.

--auto-commit and --no-commit are mutually exclusive.

When neither commit flag is set:

  • GitHub Actions: auto-commit enabled
  • GitLab CI: auto-commit enabled
  • Local terminal: auto-commit disabled

When auto-commit is active and tracked files changed:

  1. git add -u
  2. git commit -m "chore(janitor): apply automated lint/format fixes"

Auto-commit requires running inside a git repository.

Tool valueCommand janitor runs
ruffruff check --fix .
biomebiome check --write .
clippycargo clippy --fix --allow-dirty -- -D warnings
cargo-fmtcargo fmt
rumdlrumdl fmt .

If rumdl is selected in the full tool run but no Markdown files are present, janitor skips rumdl.