Skip to content

Instantly share code, notes, and snippets.

@koron
Created January 24, 2017 00:21
Show Gist options
  • Save koron/d0f046d719a2de292306f14427388d0b to your computer and use it in GitHub Desktop.
Save koron/d0f046d719a2de292306f14427388d0b to your computer and use it in GitHub Desktop.
golint with Makefile
GO_SUBPKGS = $(shell go list ./... | grep -v /vendor/ | sed -e "s!$$(go list)!.!")
lint:
@echo "golint"
@for f in $(GO_SUBPKGS) ; do golint $$f ; done
@echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment