-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (23 loc) · 729 Bytes
/
Makefile
File metadata and controls
26 lines (23 loc) · 729 Bytes
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
.PHONY: init lint
GO111MODULE=on
LINT_OPT := -E gofmt \
-E golint \
-E govet \
-E gosec \
-E unused \
-E gosimple \
-E structcheck \
-E varcheck \
-E ineffassign \
-E deadcode \
-E typecheck \
-E misspell \
-E whitespace \
-E errcheck \
--exclude '(comment on exported (method|function|type|const|var)|should have( a package)? comment|comment should be of the form)' \
--timeout 5m
init:
go mod download
lint:
@type golangci-lint > /dev/null || go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint $(LINT_OPT) run ./...