Skip to content

Commit b414729

Browse files
committed
Makefile: add [golang]ci-lint target.
And hook it into [pre-]pr-checks. Signed-off-by: Krisztian Litkey <[email protected]>
1 parent 91c77d0 commit b414729

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ GO_TEST := $(GO_CMD) test -race -v -cover
1616
GO_LINT := golint -set_exit_status
1717
GO_FMT := gofmt
1818
GO_VET := $(GO_CMD) vet
19+
CI_LINT := golangci-lint
1920

2021
CDI_PKG := $(shell grep ^module go.mod | sed 's/^module *//g')
2122

@@ -43,7 +44,7 @@ test: test-gopkgs test-schema
4344
# validation targets
4445
#
4546

46-
pre-pr-checks pr-checks: test fmt lint vet
47+
pre-pr-checks pr-checks: test fmt lint vet ci-lint
4748

4849
fmt format:
4950
$(Q)$(GO_FMT) -s -d -w -e .
@@ -52,6 +53,9 @@ lint:
5253
$(Q)$(GO_LINT) -set_exit_status ./...
5354
vet:
5455
$(Q)$(GO_VET) ./...
56+
golangci-lint ci-lint:
57+
$(Q)$(CI_LINT) run
58+
5559

5660
#
5761
# build targets

0 commit comments

Comments
 (0)