2016-09-19 06:28:34 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
set -o nounset
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
for d in $(find . -type d -not -iwholename '*.git*' -a -not -iname '.tool' -a -not -iwholename '*vendor*'); do
|
2017-01-17 19:57:35 +00:00
|
|
|
${GOPATH}/bin/gometalinter \
|
|
|
|
--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='cmd\/client\/.*\.go.*\(dupl\)$' \
|
|
|
|
--exclude='vendor\/.*' \
|
|
|
|
--exclude='server\/seccomp\/.*\.go.*$' \
|
|
|
|
--disable=aligncheck \
|
|
|
|
--disable=gotype \
|
|
|
|
--disable=gas \
|
|
|
|
--cyclo-over=60 \
|
|
|
|
--dupl-threshold=100 \
|
|
|
|
--tests \
|
2017-03-16 21:03:12 +00:00
|
|
|
--deadline=60s "${d}"
|
2016-09-19 06:28:34 +00:00
|
|
|
done
|