Skip to content

Commit

Permalink
Merge pull request #1109 from bai/errcheck-ignore-fmt
Browse files Browse the repository at this point in the history
Ignore fmt package when doing errcheck
  • Loading branch information
bai authored May 30, 2018
2 parents 3c763ff + 28ad786 commit 842ac3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 842ac3f

Please sign in to comment.