Makefile: suggests install.tools

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-09-28 20:53:29 +02:00
parent f46888f429
commit 741873adbe
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
2 changed files with 1 additions and 5 deletions

View file

@ -4,11 +4,6 @@ set -o errexit
set -o nounset
set -o pipefail
if [ ! $(command -v gometalinter) ]; then
go get -u github.com/alecthomas/gometalinter
gometalinter --update --install
fi
for d in $(find . -type d -not -iwholename '*.git*' -a -not -iname '.tool' -a -not -iwholename '*vendor*'); do
gometalinter \
--exclude='error return value not checked.*(Close|Log|Print).*\(errcheck\)$' \

View file

@ -22,6 +22,7 @@ help:
@echo " * 'lint' - Execute the source code linter"
lint: ${OCID_LINK}
@which gometalinter > /dev/null 2>/dev/null || (echo "ERROR: gometalinter not found. Consider 'make install.tools' target" && false)
@echo "checking lint"
@./.tool/lint