-
Notifications
You must be signed in to change notification settings - Fork 26
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
Enable all default golingci-lint linters #371
Conversation
Update config to remove linters config section. Fix linting problems found by all linters. Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
@@ -148,8 +148,11 @@ func newControlPlaneEndpointManager(k8sclient kubernetes.Interface, stop <-chan | |||
}, | |||
}, | |||
) | |||
if err != nil { | |||
return m, err |
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.
I'd argue we could return nil, err
, but m, err
is closer to the previous behavior. m
will presumably be nil
too.
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.
So...we're agreeing to leave it as m, err?
Add the error contents to the error output. Co-authored-by: Marques Johansson <mjohansson@equinix.com>
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.
I have one style question (not even a nit) and the DCO check is failing. If we don't mind the DCO failure I'm good to approve this.
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Update config to remove linters config section. This will enable all the default linters.
Fix linting problems found by all linters.
Could use some close scrutiny on my error handling fixes and my test fail log calls.
Signed-off-by: Chris Privitere 23177737+cprivitere@users.noreply.github.com