Skip to content

Commit

Permalink
test: mask 'nil Context' for staticcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Sep 7, 2017
1 parent 9a726b4 commit 24498ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24498ea

Please sign in to comment.