Makefile 383 B

12345678910
  1. # This program requires Go 1.16, which is not yet released, so it uses a custom
  2. # Go build installed in GOPATH[0]/bin.
  3. # Use the first GOPATH workspace only.
  4. BIN116 = $(shell go env GOPATH | sed -E 's/^(.*):/\1/' )/bin
  5. lint:
  6. @PATH="$(BIN116):$(PATH)" staticcheck ./...
  7. @PATH="$(BIN116):$(PATH)" golint -min_confidence=0.3 ./...
  8. @PATH="$(BIN116):$(PATH)" golangci-lint run ./...