forked from grafana/grafana-plugin-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 983 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
GOPATH=$(shell go env GOPATH)
GO = GO111MODULE=on go
all: build
protobuf:
bash scripts/protobuf-check.sh
bash proto/generate.sh
$(GOPATH)/bin/golangci-lint:
$(GO) get github.com/golangci/golangci-lint/cmd/[email protected]
$(GOPATH)/bin/revive:
$(GO) get github.com/mgechev/revive@88015ccf8e97dec79f401f2628aa199f8fe8cb10
$(GOPATH)/bin/gosec:
$(GO) get github.com/securego/gosec/cmd/gosec@b4c76d4234afbdec09cfd5843f3e59f03ef586cf
build:
$(GO) build ./...
test:
$(GO) test ./...
lint: $(GOPATH)/bin/golangci-lint $(GOPATH)/bin/revive $(GOPATH)/bin/gosec
$(GO) vet ./...
$(GOPATH)/bin/golangci-lint --skip-files=dataframe/generic_nullable_vector.go --skip-files=dataframe/generic_vector.go run ./...
$(GOPATH)/bin/revive -exclude ./vendor/... -formatter stylish -config scripts/configs/revive.toml ./...
$(GOPATH)/bin/gosec -quiet -exclude=G104,G107,G108,G201,G202,G204,G301,G304,G401,G402,G501 -conf=scripts/configs/gosec.json ./...
.PHONY: all build protobuf