Skip to content

Commit

Permalink
Travis: Disable gometalinter warnings on the portion of x509 that is …
Browse files Browse the repository at this point in the history
…copied verbatim from the Go standard library.
  • Loading branch information
JeremyRand committed Jul 28, 2017
1 parent 05afcd4 commit 978116d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis/script
Expand Up @@ -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 \
Expand 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=$?

Expand All @@ -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=$?

Expand Down

0 comments on commit 978116d

Please sign in to comment.