github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/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  # from a platform-specific Dockerfile, otherwise let's just set
     8  # (somewhat pessimistic) default of 10 minutes.
     9  : ${GOMETALINTER_OPTS=--deadline=10m}
    10  
    11  gometalinter \
    12  	${GOMETALINTER_OPTS} \
    13  	--config $SCRIPTDIR/gometalinter.json ./...