From 978116dedab3dcaa64fb33d10c6fe4ac237d5840 Mon Sep 17 00:00:00 2001 From: JeremyRand Date: Fri, 28 Jul 2017 02:38:10 +0000 Subject: [PATCH] Travis: Disable gometalinter warnings on the portion of x509 that is copied verbatim from the Go standard library. --- .travis/script | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis/script b/.travis/script index 286049c..cf9fb68 100644 --- a/.travis/script +++ b/.travis/script @@ -14,6 +14,8 @@ fi gometalinter.v1 --install +# The --exclude line disables warnings on the portion of x509 that is copied +# verbatim from the Go standard library. echo "" echo "gometalinter critical (should be no warnings):" gometalinter.v1 --enable-all \ @@ -37,6 +39,7 @@ gometalinter.v1 --enable-all \ --disable=unused \ --concurrency=3 \ --deadline=10m \ +--exclude='^x509/([a-wy-z]|x509.go|x509_[a-rt-z])' \ ./... STATICRESULT1=$? @@ -45,6 +48,7 @@ echo "gometalinter non-critical (warnings expected):" gometalinter.v1 --enable-all \ --concurrency=3 \ --deadline=10m \ +--exclude='^x509/([a-wy-z]|x509.go|x509_[a-rt-z])' \ ./... STATICRESULT2=$?