Merge pull request #70 from runcom/gometalinter
Makefile: suggests install.tools
This commit is contained in:
commit
7e2460ad73
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