Files
skopeo/tests/validate/gometalinter.sh
Nalin Dahyabhai b92279faa4 Increase the timeout for metalinter from 2m to 4m
Increase the timeout that we set for running the metalinter from 2
minutes to 4 minutes, for cases where the calling environment is more
heavily loaded than we expected.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #119
Approved by: rhatdan
2017-05-23 17:06:37 +00:00

21 lines
697 B
Bash
Executable File

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