From 8f280dc5c6307d331afb169f66f9f9a8066dd8ff Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Wed, 5 Apr 2017 00:37:37 +1000 Subject: [PATCH] oci: ignore silly lint errors checking lint oci/oci.go:372::warning: declaration of err shadows declaration at oci.go:240: (vetshadow) oci/oci.go:265:15:warning: error return value not checked (os.RemoveAll(logPath)) (errcheck) Signed-off-by: Aleksa Sarai --- .tool/lint | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.tool/lint b/.tool/lint index f87f5c2a..e70b53f8 100755 --- a/.tool/lint +++ b/.tool/lint @@ -6,7 +6,8 @@ set -o pipefail for d in $(find . -type d -not -iwholename '*.git*' -a -not -iname '.tool' -a -not -iwholename '*vendor*'); do ${GOPATH}/bin/gometalinter \ - --exclude='error return value not checked.*(Close|Log|Print).*\(errcheck\)$' \ + --exclude='error return value not checked.*(Close|Log|Print|RemoveAll).*\(errcheck\)$' \ + --exclude='declaration of.*err.*shadows declaration.*\(vetshadow\)$' \ --exclude='.*_test\.go:.*error return value not checked.*\(errcheck\)$' \ --exclude='duplicate of.*_test.go.*\(dupl\)$' \ --exclude='cmd\/client\/.*\.go.*\(dupl\)$' \