3 files changed,
39 insertions(+),
5 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-07-31 17:28:11 +0300
Authored at:
2026-07-31 17:09:54 +0300
Change ID:
mozrwmwutsrmprquywornmrnotwuomur
Parent:
bcc8624
M
internal/linter/testdata/account-depth.txtar
··· 13 13 Income:Job:Salary:Monthly:Base $1000 14 14 Assets:Checking:Deep:Sub 15 15 16 + 17 +~ 2024-01-02 18 + Income:Job:Salary:Monthly:Base $1000 19 + Assets:Checking:Deep:Sub 20 + 21 +~ monthly 22 + Income:Job:Salary:Monthly:Base:Based $1000 23 + Assets:Checking 24 + 25 += ^income 26 + Some:Very:Deep:Nested:Account:Name *.67 27 + (liabilities:tax) *.33 28 + 16 29 -- expect -- 17 30 in.journal:2:9: account-depth: account "Expenses:Food:Restaurants:Pizza:Hawaiian" depth (5) exceeds max allowed depth (3) 18 31 in.journal:3:9: account-depth: account "Expenses:Tax:Income:More:Deep:Too" depth (6) exceeds max allowed depth (3) 19 32 in.journal:5:19: account-depth: account "Expenses:Food:Restaurants:Pizza:Hawaiian" depth (5) exceeds max allowed depth (3) 20 33 in.journal:12:5: account-depth: account "Income:Job:Salary:Monthly:Base" depth (5) exceeds max allowed depth (3) 21 34 in.journal:13:5: account-depth: account "Assets:Checking:Deep:Sub" depth (4) exceeds max allowed depth (3) 35 +in.journal:17:5: account-depth: account "Income:Job:Salary:Monthly:Base" depth (5) exceeds max allowed depth (3) 36 +in.journal:18:5: account-depth: account "Assets:Checking:Deep:Sub" depth (4) exceeds max allowed depth (3) 37 +in.journal:21:5: account-depth: account "Income:Job:Salary:Monthly:Base:Based" depth (6) exceeds max allowed depth (3) 38 +in.journal:25:5: account-depth: account "Some:Very:Deep:Nested:Account:Name" depth (6) exceeds max allowed depth (3)
M
internal/linter/testdata/missing-commodity.txtar
··· 13 13 expenses:rent2 1000 USD @ 1 UAH 14 14 assets:cash 15 15 16 + 17 +2024-06-02 "with balance assertion" 18 + assets:cash -100 = 0.00 USD @@ 0.00 UAH 19 + expenses:food 100 UAH 20 + 16 21 P 2026-06-20 USD 2 17 22 P 2026-06-20 USD 2 UAH 18 23 ··· 36 41 in.journal:10:21: missing-commodity: amount missing commodity 37 42 in.journal:11:20: missing-commodity: amount missing commodity 38 43 in.journal:11:27: missing-commodity: amount missing commodity 39 -in.journal:15:18: missing-commodity: amount missing commodity 40 -in.journal:19:3: missing-commodity: amount missing commodity 41 -in.journal:21:3: missing-commodity: amount missing commodity 42 -in.journal:26:20: missing-commodity: amount missing commodity 43 -in.journal:30:20: missing-commodity: amount missing commodity 44 +in.journal:17:18: missing-commodity: amount missing commodity 45 +in.journal:20:18: missing-commodity: amount missing commodity 46 +in.journal:24:3: missing-commodity: amount missing commodity 47 +in.journal:26:3: missing-commodity: amount missing commodity 48 +in.journal:31:20: missing-commodity: amount missing commodity 49 +in.journal:35:20: missing-commodity: amount missing commodity
M
internal/linter/testdata/multiple-omitted-amounts.txtar
··· 23 23 Assets:Bank = 1.69 UAH 24 24 Assets:Cash = 2.00 UAH 25 25 26 +~ montly 27 + Income:Job $1000 28 + Assets:Cash 29 + Assets:Bank 30 + 31 +~ montly 32 + Income:Job $1000 33 + Assets:Bank 34 + 26 35 -- expect -- 27 36 in.journal:2:1: multiple-omitted-amounts: more than one posting has omitted amount 28 37 in.journal:3:1: multiple-omitted-amounts: more than one posting has omitted amount ··· 30 39 in.journal:8:1: multiple-omitted-amounts: more than one posting has omitted amount 31 40 in.journal:9:1: multiple-omitted-amounts: more than one posting has omitted amount 32 41 in.journal:11:1: multiple-omitted-amounts: more than one posting has omitted amount 42 +in.journal:27:1: multiple-omitted-amounts: more than one posting has omitted amount 43 +in.journal:28:1: multiple-omitted-amounts: more than one posting has omitted amount