github.com/OpenFlowLabs/storage@v1.12.13/hack/gometalinter.sh (about)

     1  #!/bin/bash
     2  export PATH=${GOPATH%%:*}/bin:${PATH}
     3  if ! which gometalinter.v1 > /dev/null 2> /dev/null ; then
     4  	echo gometalinter.v1 is not installed.
     5  	echo Try installing it with \"make install.tools\" or with
     6  	echo \"go get -u gopkg.in/alecthomas/gometalinter.v1\"
     7  	echo \"gometalinter.v1 --install --vendored-linters\"
     8  	exit 1
     9  fi
    10  exec gometalinter.v1 \
    11  	--exclude='error return value not checked.*(Close|Log|Print).*\(errcheck\)$' \
    12  	--exclude='.*_test\.go:.*error return value not checked.*\(errcheck\)$' \
    13  	--exclude='duplicate of.*_test.go.*\(dupl\)$' \
    14  	--exclude='vendor\/.*' \
    15  	--disable=gotype \
    16  	--disable=gas \
    17  	--disable=aligncheck \
    18  	--cyclo-over=40 \
    19  	--deadline=120s \
    20  	--tests "$@"