Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/gomega-lint
https://github.com/dustinspecker/gomega-lint
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dustinspecker/gomega-lint
- Owner: dustinspecker
- License: mit
- Created: 2022-11-05T00:49:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T01:11:34.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T03:26:43.702Z (5 months ago)
- Language: Go
- Size: 27.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# gomega-lint
> opinionated linter for [gomega](https://onsi.github.io/gomega/)
## Install
1. `go install github.com/dustinspecker/gomega-lint/cmd/gomega-lint@latest`
## Usage
### Check for violations
```shell
gomega-lint ./...
```### Fix
Some rules support automatically fixing violations.
```shell
gomega-lint -fix ./...
```### Run individual rules
By default, `gomega-lint` runs all rules. To specify which rules to run, use the following:
```shell
gomega-lint -noformatannotation -requireannotation -usenewwitht -usepointto ./...
```## Rules
- [noformatannotation](docs/rules/noformatannotation.md) (fixable)
- [requireannotation](docs/rules/requireannotation.md)
- [usenewwitht](docs/rules/usenewwitht.md) (fixable)
- [usepointto](docs/rules/usepointto.md)## License
MIT