From 9c620947d1bf9b7526cb4a6bd84a724cf74fe1dd Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Thu, 2 Mar 2017 10:48:09 +0700 Subject: [PATCH] Updating contrib/meta.sh to be more explicit on ignored meta errors --- contrib/meta.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/contrib/meta.sh b/contrib/meta.sh index 772eb33..2d63d6f 100755 --- a/contrib/meta.sh +++ b/contrib/meta.sh @@ -12,17 +12,18 @@ gometalinter \ --cyclo-over=25 \ --sort=path \ --exclude='\(defer (.+?)\)\) \(errcheck\)$' \ - --exclude='func easyjson.*should be' \ --exclude='/easyjson\.go.*(passes|copies) lock' \ - --exclude='/easyjson\.go.*warning' \ - --exclude='^cdp/.*gocyclo' \ + --exclude='/easyjson\.go.*ineffectual assignment' \ + --exclude='/easyjson\.go.*unnecessary conversion' \ + --exclude='/easyjson\.go.*\((gocyclo|golint|goconst)\)$' \ --exclude='^cdp/.*Potential hardcoded credentials' \ + --exclude='^cdp/cdp\.go.*UnmarshalEasyJSON.*\(gocyclo\)$' \ + --exclude='^cdp/cdputil/cdputil\.go.*UnmarshalMessage.*\(gocyclo\)$' \ + --exclude='^cmd/chromedp-gen/.*\((gocyclo|interfacer)\)$' \ --exclude='^cmd/chromedp-proxy/main\.go.*\(gas\)$' \ - --exclude='^cmd/chromedp-gen/fixup/fixup\.go.*goconst' \ + --exclude='^cmd/chromedp-gen/fixup/fixup\.go.*\(goconst\)$' \ --exclude='^cmd/chromedp-gen/internal/enum\.go.*unreachable' \ --exclude='^cmd/chromedp-gen/main\.go.*\(gas\)$' \ - --exclude='^cmd/chromedp-gen/.*gocyclo' \ - --exclude='^cmd/chromedp-gen/.*interfacer' \ --exclude='^kb/gen\.go.*\((gas|vet)\)$' \ --exclude='^runner/.*\(gas\)$' \ --exclude='^handler\.go.*cmd can be easyjson\.Marshaler' \