all repos

clerk @ 9444b5a

missing tooling for ledger/hledger
1 files changed, 3 insertions(+), 1 deletions(-)
fix: missing_commodity: skip it format is not provided
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-06-27 12:41:04 +0300
Authored at: 2026-06-26 18:06:45 +0300
Change ID: mxyztzxonvwtzlyqmsxpuzksokmwxvls
Parent: a84ac41
M internal/linter/rule_missing_commodity.go
ยทยทยท
        20
        20
         		m.check(&finds, e.From)

      
        21
        21
         		m.check(&finds, e.To)

      
        22
        22
         	case *ast.CommodityDirective:

      
        23
        
        -		m.check(&finds, e.Format)

      
        
        23
        +		if e.Format.Commodity != "" {

      
        
        24
        +			m.check(&finds, e.Format)

      
        
        25
        +		}

      
        24
        26
         	case *ast.DefaultCommodityDirective:

      
        25
        27
         		m.check(&finds, e.Amount)

      
        26
        28
         	case *ast.MarketPriceDirective: