go_phpdeps/Makefile

10 lines
383 B
Makefile

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