From 10d0ae80f6c6b74b6905807794fc689d39a30a20 Mon Sep 17 00:00:00 2001 From: closer-claudio Date: Sun, 15 Nov 2026 17:17:22 -0800 Subject: [PATCH] The commit's results have a name in Runner.Run `just lint` fails on main: validate/runner.go:111, `vr`, is too short for varnamelen. Two changes met there. One removed runner.go's exemptions from varnamelen, which nothing in the file needed then; the other, written before it merged, added the line with the two-letter name. Each was green alone. The variable is called results. Co-Authored-By: Claude Fable 5.2 Signed-off-by: closer-claudio --- validate/runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validate/runner.go b/validate/runner.go index 9767d94..3ab2fba 100644 --- a/validate/runner.go +++ b/validate/runner.go @@ -108,7 +108,7 @@ func (r *Runner) Run(ctx context.Context) (err error) { return fmt.Errorf("stopped before %s: %w", commit["abbreviated_commit"], err) } - vr := Commit(ctx, commit, r.Rules) + results := Commit(ctx, commit, r.Rules) // A rule that was stopped has not judged the commit: what it // returned is the stop, and is not a result. @@ -116,10 +116,10 @@ func (r *Runner) Run(ctx context.Context) (err error) { return fmt.Errorf("stopped at %s: %w", commit["abbreviated_commit"], err) } - r.Results = append(r.Results, vr...) + r.Results = append(r.Results, results...) if r.Report != nil { - r.Report(commit, vr) + r.Report(commit, results) } }