|
|
|
@ -14,7 +14,7 @@ fi
|
|
|
|
|
|
|
|
|
|
gometalinter.v2 --install
|
|
|
|
|
|
|
|
|
|
# aligncheck is disabled because of these comments:
|
|
|
|
|
# maligned 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.
|
|
|
|
@ -23,7 +23,6 @@ gometalinter.v2 --install
|
|
|
|
|
echo ""
|
|
|
|
|
echo "gometalinter critical (should be no warnings):"
|
|
|
|
|
gometalinter.v2 --enable-all \
|
|
|
|
|
--disable=aligncheck \
|
|
|
|
|
--disable=deadcode \
|
|
|
|
|
--disable=dupl \
|
|
|
|
|
--disable=errcheck \
|
|
|
|
@ -33,6 +32,7 @@ gometalinter.v2 --enable-all \
|
|
|
|
|
--disable=golint \
|
|
|
|
|
--disable=ineffassign \
|
|
|
|
|
--disable=lll \
|
|
|
|
|
--disable=maligned \
|
|
|
|
|
--disable=nakedret \
|
|
|
|
|
--disable=staticcheck \
|
|
|
|
|
--disable=test \
|
|
|
|
@ -48,7 +48,7 @@ STATICRESULT1=$?
|
|
|
|
|
echo ""
|
|
|
|
|
echo "gometalinter non-critical (warnings expected):"
|
|
|
|
|
gometalinter.v2 --enable-all \
|
|
|
|
|
--disable=aligncheck \
|
|
|
|
|
--disable=maligned \
|
|
|
|
|
--disable=test \
|
|
|
|
|
--concurrency=3 \
|
|
|
|
|
--deadline=10m \
|
|
|
|
|