mirror of
https://github.com/goharbor/harbor
synced 2025-04-23 19:23:53 +00:00
added dependency install steps to linting
Signed-off-by: Brett Johnson <brett@sdbrett.com>
This commit is contained in:
parent
260bc6ebf3
commit
4843dd0d4c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user