deprecated. See hledger-check
$ cat fixtures/imbalance.ledger
2020-03-26 * toilet paper
Expenses:Household essentials 200 JPY
Assets:Cash -2000 JPY
$ ledgerlint -f fixtures/imbalance.ledger
fixtures/imbalance.ledger:1 imbalanced transaction, (total amount) = -1800 JPY
If you use vscode, see vscode-ledgerlint.
./install.bash
See also https://github.com/oshikiri/ledgerlint/releases/latest
ledgerlint -h
# Build and create a ./ledgerlint binary
./build.bash
# Run tests
go test
Install from source code:
go get github.com/oshikiri/ledgerlint
go install github.com/oshikiri/ledgerlint
and then add ~/go/bin
to $PATH
.
MIT