rust-llm-tidy-cli-0.1.1 is not a library.
rust-llm-tidy-cli
Command-line interface for rust-llm-tidy-reorder.
Installation
Or build from source:
Usage
rust-llm-tidy is a single command that runs the full pipeline (fix,
reorder, vis, lints) by default on .rs and .md files:
# Tidy a file in place
# Preview changes without modifying the file
# Tidy every .rs/.md file under a directory recursively
# No paths given -> process the changed files in the current git diff
# Run only specific ops (repeatable); overrides the config `include` mode
# Skip an op for this run (additive to config `exclude`)
# Validate the config without processing files
Flags
| Flag | Effect |
|---|---|
--dry-run |
Print results to stdout instead of modifying files |
--config <PATH> |
Explicit config path (overrides auto-discovery) |
--no-config |
Disable config discovery and loading |
--validate |
Validate config and exit (no files processed) |
--include <OP> |
Run only these ops/lint-codes (repeatable) |
--exclude <OP> |
Skip these ops/lint-codes (repeatable) |
Operations
| Op | Does | Mutates | Default on? |
|---|---|---|---|
tables |
align GFM tables | yes | yes |
fences |
alternate nested fence delimiters | yes | yes |
links |
hoist repeated inline links | yes | yes |
reorder |
canonical item ordering | yes | yes |
vis |
narrow bare pub in restricted modules |
yes | yes |
lints |
run DOC001-DOC006 + TEST001 checks | no | yes |
An optional YAML config file (.rust-llm-tidy.yml) may exclude files from
processing, whitelist or blacklist specific rules per path, and run external
programs (e.g. rustfmt) on every processed file. Pass --config <PATH> to
use an explicit config or --no-config to disable discovery. See the
repository README for the full schema.
Ordering Rules
The algorithm orders top-level items across phases. Within most phases, an item comes before any item it references; alphabetical order breaks ties. See docs/reorder.md for an annotated 10-phase example.
License
Licensed under Apache 2.0