opinionated linter for gomega
go install github.com/dustinspecker/gomega-lint/cmd/gomega-lint@latest
gomega-lint ./...
Some rules support automatically fixing violations.
gomega-lint -fix ./...
By default, gomega-lint
runs all rules. To specify which rules to run, use the following:
gomega-lint -noformatannotation -requireannotation -usenewwitht -usepointto ./...
- noformatannotation (fixable)
- requireannotation
- usenewwitht (fixable)
- usepointto
MIT