Skip to content

Commit

Permalink
Ignore fmt package when doing errcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bai committed May 30, 2018
1 parent 3c763ff commit 28ad786
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 28ad786

Please sign in to comment.