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
|
|
|
|
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\)$' \
|
2016-09-23 07:50:05 +00:00
|
|
|
--exclude='cmd\/client\/.*\.go.*\(dupl\)$' \
|
2016-11-28 20:32:49 +00:00
|
|
|
--exclude='vendor\/src\/.*' \
|
2016-09-19 06:28:34 +00:00
|
|
|
--disable=aligncheck \
|
|
|
|
--disable=gotype \
|
|
|
|
--disable=gas \
|
2016-09-19 07:21:14 +00:00
|
|
|
--cyclo-over=50 \
|
2016-10-04 22:59:46 +00:00
|
|
|
--dupl-threshold=100 \
|
2016-09-19 06:28:34 +00:00
|
|
|
--tests \
|
2016-09-19 20:09:11 +00:00
|
|
|
--deadline=30s "${d}"
|
2016-09-19 06:28:34 +00:00
|
|
|
done
|