Explorar el Código

test: mask 'nil Context' for staticcheck

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Gyu-Ho Lee hace 8 años
padre
commit
24498ea167
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test

+ 1 - 1
test

@@ -377,7 +377,7 @@ function fmt_pass {
 		if [ -n "${staticcheckResult}" ]; then
 		if [ -n "${staticcheckResult}" ]; then
 			# TODO: resolve these after go1.8 migration
 			# TODO: resolve these after go1.8 migration
 			# See https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck
 			# 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
 			if echo "${staticcheckResult}" | egrep -v "$STATIC_CHECK_MASK"; then
 				echo -e "staticcheck checking failed:\n${staticcheckResult}"
 				echo -e "staticcheck checking failed:\n${staticcheckResult}"
 				exit 255
 				exit 255