Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
/ ledgerlint Public archive

A PoC of linter for ledger transactions

License

Notifications You must be signed in to change notification settings

oshikiri/ledgerlint

Repository files navigation

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