#!/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=120s \
	--tests "$@"

#!/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 "$@"

Increase the timeout for metalinter from 2m to 4m
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
