2017-02-12 04:59:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SRC=$(realpath $(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../)
|
|
|
|
|
|
|
|
pushd $SRC &> /dev/null
|
|
|
|
|
|
|
|
gometalinter \
|
|
|
|
--disable=aligncheck \
|
2017-03-02 03:24:35 +00:00
|
|
|
--enable=misspell \
|
|
|
|
--enable=gofmt \
|
2017-02-12 04:59:33 +00:00
|
|
|
--deadline=100s \
|
|
|
|
--cyclo-over=25 \
|
|
|
|
--sort=path \
|
|
|
|
--exclude='\(defer (.+?)\)\) \(errcheck\)$' \
|
|
|
|
--exclude='/easyjson\.go.*(passes|copies) lock' \
|
2017-03-02 03:48:09 +00:00
|
|
|
--exclude='/easyjson\.go.*ineffectual assignment' \
|
|
|
|
--exclude='/easyjson\.go.*unnecessary conversion' \
|
2017-07-01 04:53:22 +00:00
|
|
|
--exclude='/easyjson\.go.*this value of key is never used' \
|
2017-05-06 01:20:24 +00:00
|
|
|
--exclude='/easyjson\.go.*\((gocyclo|golint|goconst|staticcheck)\)$' \
|
2017-02-12 04:59:33 +00:00
|
|
|
--exclude='^cdp/.*Potential hardcoded credentials' \
|
2017-03-02 03:48:09 +00:00
|
|
|
--exclude='^cdp/cdp\.go.*UnmarshalEasyJSON.*\(gocyclo\)$' \
|
|
|
|
--exclude='^cdp/cdputil/cdputil\.go.*UnmarshalMessage.*\(gocyclo\)$' \
|
|
|
|
--exclude='^cmd/chromedp-gen/.*\((gocyclo|interfacer)\)$' \
|
2017-02-12 04:59:33 +00:00
|
|
|
--exclude='^cmd/chromedp-proxy/main\.go.*\(gas\)$' \
|
2017-03-02 03:48:09 +00:00
|
|
|
--exclude='^cmd/chromedp-gen/fixup/fixup\.go.*\(goconst\)$' \
|
2017-02-12 04:59:33 +00:00
|
|
|
--exclude='^cmd/chromedp-gen/internal/enum\.go.*unreachable' \
|
2017-05-06 01:20:24 +00:00
|
|
|
--exclude='^cmd/chromedp-gen/(main|domain-gen)\.go.*\(gas\)$' \
|
2017-07-01 07:24:47 +00:00
|
|
|
--exclude='^examples/[a-z]+/main\.go.*\(errcheck\)$' \
|
2017-02-12 04:59:33 +00:00
|
|
|
--exclude='^kb/gen\.go.*\((gas|vet)\)$' \
|
|
|
|
--exclude='^runner/.*\(gas\)$' \
|
|
|
|
--exclude='^handler\.go.*cmd can be easyjson\.Marshaler' \
|
|
|
|
./...
|
|
|
|
|
|
|
|
popd &> /dev/null
|