Преглед на файлове

Merge pull request #1109 from bai/errcheck-ignore-fmt

Ignore fmt package when doing errcheck
Vlad Gorodetsky преди 7 години
родител
ревизия
842ac3fe53
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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