You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/assent: 48 copy-pasted stderr failure blocks and three arg-parsing styles #161
In compare.go, 22 of them carry the byte-identical "assent compare:", err line.
10 bare return 2 in cmd/assent/test.go.
Three arg-parsing styles in one package: flag.NewFlagSet (compare.go, render.go, run.go), manual positional (lint.go), and a hand-rolled scan (test.go:34-46).
Fix: add a failf(stderr, format, args...) int helper, sweep it in mechanically behind the existing exit-code tests, and converge lint/test on flag.NewFlagSet when next touched.
Activity