-
Notifications
You must be signed in to change notification settings - Fork 98
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 ginkgolinter and fix finding #1689
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.
Thanks for the contribution!
@nunnatsa, thanks for adding this! This will be very helpful 😄 |
4bf8cde
to
80b2d3b
Compare
@kate-osborn and @sjberman, thanks for the review. Fixed. PTAL. BTW, the next version of the ginkgolinter will include an option to force |
Enable ginkgolinter in .golangci.yaml, and fix its findings.
Proposed changes
Enable ginkgolinter in .golangci.yaml, and fix its findings.
The fixing was done by running the ginkgolinter cli. All the finding except for one, are categorized as style findings, e.g.
Expect(err).To(BeNil())
instead ofExpect(err).ToNot(HaveOccurred())
.The linter also found one real issue in tests/suite/longevity_test.go, where there was a check (
Expect
) with no assertion (To(...)
). That was fixed manually from:to
Closes #1678
Checklist
Release notes