From bd5a08baf107237722bf8a815a2a327af9e639a7 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Wed, 4 Nov 2020 14:17:48 -0800 Subject: [PATCH] add section to run lints (#1480) * add section to run lints * Update DEVELOPMENT.md --- DEVELOPMENT.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 8d19ce316..b96df47ed 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -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.