We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c882cb8 commit 5f32e8bCopy full SHA for 5f32e8b
Makefile
@@ -1,4 +1,4 @@
1
-.PHONY: test
+.PHONY: test lint
2
3
export GO111MODULE=on
4
@@ -8,12 +8,17 @@ DATE ?= $(shell date -u '+%Y-%m-%d %H:%M UTC')
8
BUILDER ?= Makefile
9
VERSION_FLAGS := -X "github.com/mgechev/revive/cli.version=$(GIT_VERSION)" -X "github.com/mgechev/revive/cli.date=$(DATE)" -X "github.com/mgechev/revive/cli.commit=$(GIT_COMMIT)" -X "github.com/mgechev/revive/cli.builtBy=$(BUILDER)"
10
11
+all: test lint build
12
+
13
install:
14
@go mod vendor
15
16
build:
17
@go build -ldflags='$(VERSION_FLAGS)'
18
19
+lint:
20
+ revive --config revive.toml ./...
21
22
test:
23
@go test -v -race ./...
24
0 commit comments