From 28ad7863efec96446e389d1b838b9a45e5a99fc0 Mon Sep 17 00:00:00 2001 From: Vlad Gorodetsky Date: Wed, 30 May 2018 17:13:32 +0300 Subject: [PATCH] Ignore fmt package when doing errcheck --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 90a6f50bd..b9a453dd2 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,9 @@ test: vet: go vet ./... +# See https://github.com/kisielk/errcheck/pull/141 for details on ignorepkg errcheck: - errcheck github.com/Shopify/sarama/... + errcheck -ignorepkg fmt github.com/Shopify/sarama/... fmt: @if [ -n "$$(go fmt ./...)" ]; then echo 'Please run go fmt on your code.' && exit 1; fi