/ledgerlint

A PoC of linter for ledger transactions

Primary LanguageGoMIT LicenseMIT

ledgerlint: a linter for ledger transaction

deprecated. See hledger-check


Build Status go report release

$ 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.

Installation

./install.bash

See also https://github.com/oshikiri/ledgerlint/releases/latest

Usage

ledgerlint -h

Development

# 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.

Links

This project

plaintext accounting

License

MIT