-
Notifications
You must be signed in to change notification settings - Fork 22
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 GO v1.21 #476
Update GO v1.21 #476
Conversation
534b295
to
8f22775
Compare
8f22775
to
0a62812
Compare
- EXC0011 # disable excluding of issues about missing package comments from stylecheck | ||
|
||
# Show all errors for all linters. Setting these to 0 disables limiting error reporting. | ||
- EXC0011 |
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.
Can we keep the comment as it is.
- EXC0011 | |
- EXC0011 # disable excluding of issues about missing package comments from stylecheck |
- varcheck | ||
- whitespace | ||
- bodyclose | ||
- noctx | ||
- rowserrcheck | ||
- structcheck | ||
- unparam |
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.
Are these removals intentional?
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.
same question. If they are, in the future it would be good to mention in the PR description or a comment in this file
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.
Yes these are deprecated in new golangci-lint version. Updated the PR description
@@ -96,6 +96,7 @@ func runLocalListener() error { | |||
mux := http.NewServeMux() | |||
mux.HandleFunc("/callback", callbackHandler) | |||
tokenExchange, tokenExchangeComplete = context.WithCancel(context.TODO()) | |||
//nolint:gosec |
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.
If possible might be better to add a comment on why we are skipping this.
if hdr.Typeflag == tar.TypeReg || hdr.Typeflag == tar.TypeRegA { | ||
if hdr.Typeflag == tar.TypeReg { |
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.
Is this change intentional?
0a62812
to
dbff5e1
Compare
- varcheck | ||
- whitespace | ||
- bodyclose | ||
- noctx | ||
- rowserrcheck | ||
- structcheck | ||
- unparam |
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.
same question. If they are, in the future it would be good to mention in the PR description or a comment in this file
- "!$test" | ||
allow: | ||
- $gostd | ||
- github.com/AlecAivazis/survey/v2 |
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.
this sounds like sounding that is rather cumbersome to maintain. Can you summarize when a pattern needs to be added to the allow list, because it does not seem to cover all of go.mod
Addressing the comments as part of #490 |
What this PR does / why we need it
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
Release note
Additional information
Special notes for your reviewer