Makefile: suggests install.tools
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
f46888f429
commit
741873adbe
2 changed files with 1 additions and 5 deletions
|
@ -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\)$' \
|
||||
|
|
1
Makefile
1
Makefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue