added dependency install steps to linting

Signed-off-by: Brett Johnson <brett@sdbrett.com>
This commit is contained in:
Brett Johnson 2018-11-27 04:47:31 +11:00
parent 260bc6ebf3
commit 4843dd0d4c
1 changed files with 5 additions and 0 deletions

View File

@ -196,6 +196,11 @@ Try to limit column width to 120 characters for both code and markdown documents
Always run [golint](https://github.com/golang/lint) on source code before
committing your changes.
```
#Install fgt and golint
go get -u golang.org/x/lint/golint
go get github.com/GeertJohan/fgt
#In the #working_dir/harbor, run
go list ./... | grep -v -E 'vendor|tests' | xargs -L1 fgt golint