2
0
mirror of https://github.com/namecoin/ncdns synced 2024-11-16 00:13:01 +00:00

Travis: Disable gometalinter warnings on the portion of x509 that is copied verbatim from the Go standard library.

This commit is contained in:
JeremyRand 2017-07-28 02:38:10 +00:00
parent 05afcd4dab
commit 978116deda
No known key found for this signature in database
GPG Key ID: B3F2D165786D6570

View File

@ -14,6 +14,8 @@ fi
gometalinter.v1 --install gometalinter.v1 --install
# The --exclude line disables warnings on the portion of x509 that is copied
# verbatim from the Go standard library.
echo "" echo ""
echo "gometalinter critical (should be no warnings):" echo "gometalinter critical (should be no warnings):"
gometalinter.v1 --enable-all \ gometalinter.v1 --enable-all \
@ -37,6 +39,7 @@ gometalinter.v1 --enable-all \
--disable=unused \ --disable=unused \
--concurrency=3 \ --concurrency=3 \
--deadline=10m \ --deadline=10m \
--exclude='^x509/([a-wy-z]|x509.go|x509_[a-rt-z])' \
./... ./...
STATICRESULT1=$? STATICRESULT1=$?
@ -45,6 +48,7 @@ echo "gometalinter non-critical (warnings expected):"
gometalinter.v1 --enable-all \ gometalinter.v1 --enable-all \
--concurrency=3 \ --concurrency=3 \
--deadline=10m \ --deadline=10m \
--exclude='^x509/([a-wy-z]|x509.go|x509_[a-rt-z])' \
./... ./...
STATICRESULT2=$? STATICRESULT2=$?