From 24498ea167f3c4dcd9762f8f5712a82fd445df88 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Wed, 6 Sep 2017 17:25:26 -0700 Subject: [PATCH] test: mask 'nil Context' for staticcheck Signed-off-by: Gyu-Ho Lee --- test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test b/test index 2c86a0f9f0c..0be80f50746 100755 --- a/test +++ b/test @@ -377,7 +377,7 @@ function fmt_pass { if [ -n "${staticcheckResult}" ]; then # TODO: resolve these after go1.8 migration # See https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck - STATIC_CHECK_MASK="SA(1019|2002)" + STATIC_CHECK_MASK="SA(1012|1019|2002)" if echo "${staticcheckResult}" | egrep -v "$STATIC_CHECK_MASK"; then echo -e "staticcheck checking failed:\n${staticcheckResult}" exit 255