x/lint (golint) is now deprecated and frozen

535 views
Skip to first unread message

Daniel Martí

unread,
May 14, 2021, 4:31:36 AM5/14/21
to golan...@googlegroups.com
Hi all,

As per https://golang.org/issue/38968, approved nearly a year ago,
x/lint is now deprecated and its repository has been frozen.

There's no drop-in replacement to golint per se, but you should find
that https://staticcheck.io/ works well in encouraging good Go code,
much like golint did in the past, since it also includes style checks.
There's always "gofmt" and "go vet" too, of course.

If you're currently enforcing golint via CI, hooks, or checks, it's
recommended that you stop doing that. golint was never intended as a
tool with zero false positives, and it hasn't been actively maintained
for some time.

Thanks.
Reply all
Reply to author
Forward
0 new messages