Skip to content
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

Merged
merged 8 commits into from
Mar 3, 2023

Conversation

cprivitere
Copy link
Member

@cprivitere cprivitere commented Feb 23, 2023

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

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>
@cprivitere cprivitere changed the title Enable all golingci-lint linters Enable all default golingci-lint linters Feb 23, 2023
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
Copy link
Member

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.

Copy link
Member Author

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>
Copy link
Contributor

@ctreatma ctreatma left a 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.

metal/loadbalancers/metallb/configmap_test.go Show resolved Hide resolved
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
@cprivitere cprivitere requested a review from ctreatma March 2, 2023 22:17
@displague displague merged commit 660ca1e into main Mar 3, 2023
@displague displague deleted the enable-all-golanglint-ci-linters branch March 3, 2023 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants