github.com/devdivbcp/moby@v17.12.0-ce-rc1.0.20200726071732-2d4bfdc789ad+incompatible/hack/validate/gometalinter (about) 1 #!/usr/bin/env bash 2 set -e -o pipefail 3 4 SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 5 6 # CI platforms differ, so per-platform GOMETALINTER_OPTS can be set 7 # in the Jenkinsfile, otherwise let's just set a 8 # (somewhat pessimistic) default of 10 minutes. 9 : "${GOMETALINTER_OPTS=--deadline=10m}" 10 11 # shellcheck disable=SC2086 12 gometalinter \ 13 ${GOMETALINTER_OPTS} \ 14 --config "${SCRIPTDIR}/gometalinter.json" ./...