Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dustinspecker/gomega-lint


https://github.com/dustinspecker/gomega-lint

Last synced: 2 days ago
JSON representation

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