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

Adds ginkgolinter #106

Merged
merged 1 commit into from
Jun 20, 2023
Merged

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Jun 16, 2023

Linter which checks for common ginkgo issues like wrong error assertions (Expect(err).To(BeNil()) instead of
Expect(err).NotTo(HaveOccurred())), etc.

It also identifies Expect calls without a matcher.

See operator-framework/rukpak#637 for examples where it was super useful.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 16, 2023
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
@m1kola m1kola marked this pull request as ready for review June 20, 2023 17:13
@m1kola m1kola requested a review from a team as a code owner June 20, 2023 17:13
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 20, 2023
@m1kola m1kola merged commit 30f47d6 into operator-framework:main Jun 20, 2023
5 checks passed
@m1kola m1kola deleted the adds_ginkgolinter branch June 20, 2023 19:42
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

2 participants