4 files changed,
6 insertions(+),
10 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-08-03 12:52:15 +0300
Authored at:
2026-08-03 12:39:16 +0300
Change ID:
luttnmntooplslllqlpqorxvnznssszu
Parent:
0d0b837
M
internal/cli/helpers.go
··· 24 24 } 25 25 26 26 if info.IsDir() { 27 - filepath.Walk(p, func(fpath string, finfo os.FileInfo, err error) error { 27 + _ = filepath.Walk(p, func(fpath string, finfo os.FileInfo, err error) error { 28 28 if err != nil || finfo.IsDir() || !journal.IsJournalFile(fpath) { 29 29 return nil 30 30 }
M
internal/linter/linter.go
··· 26 26 // Run runs all rules against the analysis context. 27 27 func (l *Linter) Run(a *analyzer.Analysis) []Find { 28 28 var finds []Find 29 - 30 29 for _, rule := range l.rules { 31 - if jc, ok := rule.(Rule); ok { 32 - finds = append(finds, jc.CheckJournal(a)...) 33 - } 30 + finds = append(finds, rule.CheckJournal(a)...) 34 31 } 35 - 36 32 return finds 37 33 } 38 34
M
internal/linter/report.go
··· 23 23 func Fprint(w io.Writer, style PathStyle, finds []Find) { 24 24 sortFinds(finds) 25 25 for _, find := range finds { 26 - fmt.Fprintf(w, "%s:%d:%d: %s: %s\n", 26 + _, _ = fmt.Fprintf(w, "%s:%d:%d: %s: %s\n", 27 27 formatPath(style, find.Span.Start.File), 28 28 find.Span.Start.Line, find.Span.Start.Col, 29 29 find.Code, find.Message)
M
journal/printer/transaction_postings.go
··· 41 41 for _, pt := range postings { 42 42 lp.buf.Reset() 43 43 lp.writePostingLine(pt, maxAcct) 44 - fmt.Fprintln(tw, lp.buf.String()) 44 + _, _ = fmt.Fprintln(tw, lp.buf.String()) 45 45 for _, c := range pt.Comments { 46 46 lp.buf.Reset() 47 47 lp.buf.WriteString(lp.indent) 48 48 lp.writeComment(&c) 49 - fmt.Fprintln(tw, lp.buf.String()) 49 + _, _ = fmt.Fprintln(tw, lp.buf.String()) 50 50 } 51 51 } 52 - tw.Flush() 52 + _ = tw.Flush() 53 53 54 54 out := strings.TrimRight(tmp.String(), "\n") 55 55 if out == "" {