Files
skopeo/tests/validate/gometalinter.sh
Nalin Dahyabhai 83fe25ca4e Turn on --enable-gc when running gometalinter
It looks like the metalinter is running out of memory while running
tests under PAPR, so give this a try.

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

Closes: #221
Approved by: rhatdan
2017-07-26 17:43:05 +00:00

22 lines
712 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 \
--enable-gc \
--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 "$@"