Skip to content

Commit 5f32e8b

Browse files
authored
chore: add lint and all targets to Makefile (#1298)
1 parent c882cb8 commit 5f32e8b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test
1+
.PHONY: test lint
22

33
export GO111MODULE=on
44

@@ -8,12 +8,17 @@ DATE ?= $(shell date -u '+%Y-%m-%d %H:%M UTC')
88
BUILDER ?= Makefile
99
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)"
1010

11+
all: test lint build
12+
1113
install:
1214
@go mod vendor
1315

1416
build:
1517
@go build -ldflags='$(VERSION_FLAGS)'
1618

19+
lint:
20+
revive --config revive.toml ./...
21+
1722
test:
1823
@go test -v -race ./...
1924

0 commit comments

Comments
 (0)