Merge #67: Travis: Disable "test" and "aligncheck" static analyzers in both critical and non-critical steps

4a73f53 Travis: Copy the "aligncheck" and "test" disablement from critical to non-critical section. (JeremyRand)
b999eef Travis: Disable "test" static analyzer. (JeremyRand)

Pull request description:

  Should fix one of the Travis failures.

Tree-SHA512: 726d1459cf1c09e71a28753eaa846414ffdc06580541c2456581d2b9b70709cf0738c9b6a6bbb2f050273d94cc42ea59f0c3d1574f569849a1ce1ab425aa0752
pull/68/head
JeremyRand 6 years ago
commit 76a9fa595c
No known key found for this signature in database
GPG Key ID: B3F2D165786D6570

@ -17,6 +17,7 @@ gometalinter.v1 --install
# aligncheck is disabled because of these comments:
# * https://www.reddit.com/r/golang/comments/3lahav/aligncheck_helps_to_find_inefficiently_packed/cv4u4lg/
# * https://www.reddit.com/r/golang/comments/3lahav/aligncheck_helps_to_find_inefficiently_packed/cv5wnom/
# test is disabled because we already do tests earlier in the script.
# The --exclude line disables warnings on the portion of x509 that is copied
# verbatim from the Go standard library.
echo ""
@ -34,6 +35,7 @@ gometalinter.v1 --enable-all \
--disable=lll \
--disable=misspell \
--disable=staticcheck \
--disable=test \
--disable=unconvert \
--disable=unparam \
--disable=unused \
@ -46,6 +48,8 @@ STATICRESULT1=$?
echo ""
echo "gometalinter non-critical (warnings expected):"
gometalinter.v1 --enable-all \
--disable=aligncheck \
--disable=test \
--concurrency=3 \
--deadline=10m \
--exclude='^x509/([a-wy-z]|x509.go|x509_[a-rt-z])' \

Loading…
Cancel
Save