ledger-lint is a script I created to clean up my ledger-cli (repo here) files and to start working with rust.
Complains when account declarations appear after the first transaction.
Complains when a transaction appears out of order. Expects transaction dates to ascend.
Complains when an Income or Expense posting has a) no payee declaration for the entire transaction and b) no payee declaration for this posting.
cargo build
Please apply cargo fmt and clean up other things with cargo clippy --all-targets --all-features