Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 733 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 733 Bytes

ledger-lint

ledger-lint is a script I created to clean up my ledger-cli (repo here) files and to start working with rust.

Current Features

Declarations First

Complains when account declarations appear after the first transaction.

Transaction Order

Complains when a transaction appears out of order. Expects transaction dates to ascend.

Force Payee Info

Complains when an Income or Expense posting has a) no payee declaration for the entire transaction and b) no payee declaration for this posting.

Building

cargo build

Code styling

Please apply cargo fmt and clean up other things with cargo clippy --all-targets --all-features