add section to run lints (#1480)

* add section to run lints

* Update DEVELOPMENT.md
This commit is contained in:
Tejal Desai 2020-11-04 14:17:48 -08:00 committed by GitHub
parent 49e7d8a8cd
commit bd5a08baf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -68,6 +68,20 @@ make test
_These tests will not run correctly unless you have [checked out your fork into your `$GOPATH`](#checkout-your-fork)._
### Lint Checks
The helper script to install and run lint is placed here at the root of project.
```shell
./hack/linter.sh
```
To fix any `gofmt` issues, you can simply run `gofmt` with `-w` flag like this
```shell
find . -name "*.go" | grep -v vendor/ | xargs gofmt -l -s -w
```
### Integration tests
Currently the integration tests that live in [`integration`](./integration) can be run against your own gcloud space or a local registry.