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

ci: add new linters #780

Merged
merged 5 commits into from
Aug 22, 2022
Merged

ci: add new linters #780

merged 5 commits into from
Aug 22, 2022

Conversation

tklauser
Copy link
Member

As suggested by Robin. See individual commits.

The 'unparam' linter reports unused parameters and return values.

Suggested-by: Robin Hahling <robin.hahling@gw-computing.net>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser requested a review from rolinh August 22, 2022 10:52
@tklauser tklauser requested a review from a team as a code owner August 22, 2022 10:52
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label PR is blocked until the release note is set label Aug 22, 2022
@tklauser tklauser added the release-note/misc This PR makes changes that have no direct user impact. label Aug 22, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label PR is blocked until the release note is set label Aug 22, 2022
Copy link
Member

@rolinh rolinh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 🚀

pkg/printer/printer.go Show resolved Hide resolved
The 'makezero' linter finds slice declarations that are not initialized
with zero length and are later used with append.

Suggested-by: Robin Hahling <robin.hahling@gw-computing.net>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
We should check for the "reserved:" prefix in the label string, not vice
versa.

Found by the gocritic linter.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
Suggested-by: Robin Hahling <robin.hahling@gw-computing.net>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
Suggested-by: Robin Hahling <robin.hahling@gw-computing.net>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser merged commit 17264d7 into master Aug 22, 2022
@tklauser tklauser deleted the pr/tklauser/more-linters branch August 22, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants