-
Notifications
You must be signed in to change notification settings - Fork 110
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
Update to Go 1.18 and update GolangCI Linter #672
Conversation
@@ -33,6 +33,7 @@ linters: | |||
- goconst | |||
- golint | |||
- godot | |||
- forbidigo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forbidgo
is profoundly useless. It literally bans certain regexes from your codebase - notable any use of fmt.Print(f|ln)
(because I guess it's illegal to print to stdout without a logging framework?)
@christopher-henderson I didn't merge this tests seemed to be failing (and now merge conflict). I can if we need to force it through (post merge) |
Thanks you so much @zakird for hopping on a batch of topics yesterday 🙏 This one...this one is getting an exasperated sigh from me. Master is broken because the linter itself no longer works and requires an upgrade (including an upgrade to Go 1.18 which is all well and good). Unfortunately, the linter update is coming bundled with an absolute ocean of useless and frankly, idiotic, lints. For example, the variable So I'm fighting the urge to blindly disable this thing and pecking through its demands. EDIT: I am truly stunned. And behold their king and ruler, nlreturn, whose docs declare that the following is a hard error... func foo() int {
a := 0
_ = a
return a
} Apparently "correct" code is... func foo() int {
a := 0
_ = a
return a
} I am suddenly finding myself wishing that GitHub had a downvote option. |
I vote disable it, get master back to healthy, and then we can deal with
this independently of everything else.
…On Sat, Apr 16, 2022 at 8:46 AM Christopher Henderson < ***@***.***> wrote:
Thanks so @zakird <https://github.com/zakird> for hopping on a batch of
topics yesterday 🙏
This one...this one is getting an exasperated sigh from me. Master is
broken because the linter itself no longer works and requires an upgrade
(including an upgrade to Go 1.18 which is all well and good).
Unfortunately, the linter update is coming bundled with an absolute ocean
of useless and frankly, idiotic, lints For example, the variable ip no
longer appears to be good enough for the linter (it is clearly requiring
that anything with a global scope have a minimum name length which
is...naive). And it's not a warning, the variable ip is a full on error.
So I'm fighting the urge to blindly disable this thing and pecking through
its demands,
—
Reply to this email directly, view it on GitHub
<#672 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABREUAI6DEM47UJ5CHFZFDVFLOFJANCNFSM5S7EHOTA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
sigh golangci broke itself and began to fail to compile which forced an upgrade to a version that added just a ton of useless and asinine lints.