From 4843dd0d4c091d8c8777d7a7583ce8ede765ba83 Mon Sep 17 00:00:00 2001 From: Brett Johnson Date: Tue, 27 Nov 2018 04:47:31 +1100 Subject: [PATCH] added dependency install steps to linting Signed-off-by: Brett Johnson --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3576f51cb..752a4529a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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