-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 gochecknoglobals, use source analyzer #1422
Conversation
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.
LGTM!
Regarding 1, I totally missed the call to Also noticed that this will never lint test files so I will add a patch for this asap. |
Thanks for pointing out the faulty way to enforce the flag! Will patch this, are you OK with the change around |
I'm ok with it. |
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.
LGTM 💯
This will use the latest version of
gochecknoglobals
and the analyzer that's been created. Closes #1393This bump includes two changes:
'foo' is a global variable
tofoo is a global variable
.regexp.MustCompile()
are now allowedI'm a bit confused regarding 1 since the old code doesn't add backticks and the source which this is copied from didn't do so previously either.