Browse Source

Ignore fmt package when doing errcheck

Vlad Gorodetsky 7 years ago
parent
commit
28ad7863ef
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Makefile

+ 2 - 1
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