瀏覽代碼

Ignore fmt package when doing errcheck

Vlad Gorodetsky 7 年之前
父節點
當前提交
28ad7863ef
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -14,8 +14,9 @@ test:
 vet:
 vet:
 	go vet ./...
 	go vet ./...
 
 
+# See https://github.com/kisielk/errcheck/pull/141 for details on ignorepkg
 errcheck:
 errcheck:
-	errcheck github.com/Shopify/sarama/...
+	errcheck -ignorepkg fmt github.com/Shopify/sarama/...
 
 
 fmt:
 fmt:
 	@if [ -n "$$(go fmt ./...)" ]; then echo 'Please run go fmt on your code.' && exit 1; fi
 	@if [ -n "$$(go fmt ./...)" ]; then echo 'Please run go fmt on your code.' && exit 1; fi