-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: add gomegacheck #3279
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
feat: add gomegacheck #3279
Conversation
In order for a pull request adding a linter to be reviewed, the linter and the PR must follow some requirements. Pull Request Description
Linter
The Linter Tests Inside Golangci-lint
|
Hey, thank you for opening your first Pull Request ! |
@timebertt @ecordell it's possible to extract the linter into a dedicated repo? |
@timebertt @ecordell any news? |
how important is it that it be its own repo? @timebertt mentioned in the linked thread that it would be okay to move it, but wouldn't have time to do it. I can take a stab at it but I probably won't be able to get to it for a couple of days. |
Not a problem we can wait. |
I close this PR:
|
This adds the
gomegacheck
linter.Source: https://github.com/gardener/gardener/tree/master/hack/tools/gomegacheck
Discussion of the problem: onsi/gomega#561
Async assertions written with
gomega
don't actually assert anything unless there is an assertion on the the entire async block. It can be easy to miss, since there will often be one or more assertions inside the async block.This linter was written by @timebertt, who has given permission to include it here.