-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
39 lines (33 loc) · 852 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
32
33
34
35
36
37
38
39
MAKEFLAGS += --warn-undefined-variables
SHELL := /bin/bash -o pipefail
export GO111MODULE = on
default: test
test:
go test ./... -race -cover -covermode=atomic -coverprofile=unit_coverage.out
lint:
golangci-lint run \
--disable-all \
--exclude-use-default=false \
--exclude=package-comments \
--exclude=unused-parameter \
--enable=errcheck \
--enable=goimports \
--enable=ineffassign \
--enable=revive \
--enable=unused \
--enable=staticcheck \
--enable=unconvert \
--enable=misspell \
--enable=prealloc \
--enable=nakedret \
--enable=unparam \
--enable=typecheck \
./...
sec:
# gosec -quiet -exclude=G304 ./...
upgrade-deps:
go get -u github.com/smartystreets/goconvey@latest
go get -u github.com/spf13/cobra@latest
go get -u github.com/spf13/viper@latest
go get -u golang.org/x/term@latest
go mod tidy