-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
golint: golint is deprecated and frozen #16
Comments
(cc @bitfield and @tehsphinx) |
According to I'd argue however, that students are best served installing and running golangci-lint with the default settings. As that is highly configurable, they can later adjust that to their needs. |
However, one critical thing |
I am unsure what the best way forward is regarding the linter we use in the analyzer. Summarizing the options mentioned above:
I will ask for input from other maintainers / Go people on Slack. |
staticcheck is supposed to include most of the golint checks (see dominikh/go-tools#542), plus many more, so not many reasons to use revive. golangci-lint, being a metalinter bundling many tools, has frequent upgrade issues. For example even now, it cannot run several of its linters on 1.18, and has some peculiar failure modes needing cache cleanup. In most cases, I prefer the combination of goimports + staticcheck. The extra checks in golangci-lint add little value IMHO. |
Been thinking a bit more about this and I'm also in favor of using
|
Agreed. I also thought about this more and I have the same feelings about this as @fgm voiced above. Nevertheless, I think an additional analyzer check for missing comments on exported functions would be good as those (in the correct format) are very idiomatic for Go. This was suggested above by bitfield. |
Since golint is unmaintained, deprecated and frozen, maybe we should stop suggesting it and start suggesting alternatives like staticcheck and
go vet
.Or maybe refer to IDE integrations, like we do with
gofmt
.Relevant issue: golang/go#38968
The text was updated successfully, but these errors were encountered: