-
Notifications
You must be signed in to change notification settings - Fork 125
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
feat(security): Enable gosec and default linter set #1076
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
I need help resolving the following two failures: These weren't as straightforward as the other linter warnings.
|
First one it suggests remove the select-case statement: go func() {
defer wg.Done()
<-ctx.Done()
if msgClient != nil {
_ = msgClient.Disconnect()
}
lc.Infof("Disconnected from MessageBus")
}() For the second one move the if runDiscovery {
wg.Add(1)
go func() {
defer wg.Done()
...
}()
} |
@hahattan Thanks, Chris. I will get these suggestions merged and update the PR later this morning. |
Fixes #1029 Signed-off-by: Bryon Nevis <[email protected]>
@hahattan Pushed. Ready for re-review. |
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
Not a committer on this repo. Need someone else to merge. |
Fixes #1029
Signed-off-by: Bryon Nevis [email protected]
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:
describing the break)N/A
Testing Instructions
make test
NOTE: There are two remaining issues that need advising.