File tree 5 files changed +130
-8
lines changed
5 files changed +130
-8
lines changed Original file line number Diff line number Diff line change 23
23
with :
24
24
go-version : 1.14
25
25
- name : Build
26
- run : make all
26
+ run : make ci
27
27
- name : Upload coverage
28
28
uses : actions/upload-artifact@v2
29
29
with :
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ linters-settings:
3
3
local-prefixes : github.com/golang-templates/seed
4
4
golint :
5
5
min-confidence : 0
6
+ govet :
7
+ check-shadowing : true
6
8
misspell :
7
9
locale : US
8
10
nolintlint :
@@ -33,6 +35,7 @@ linters:
33
35
- depguard
34
36
- dogsled
35
37
- dupl
38
+ - exportloopref
36
39
- funlen
37
40
- gochecknoglobals
38
41
- gochecknoinits
@@ -44,6 +47,7 @@ linters:
44
47
- godox
45
48
- goerr113
46
49
- gofmt
50
+ - gofumpt
47
51
- goimports
48
52
- golint
49
53
- gomnd
@@ -56,16 +60,20 @@ linters:
56
60
- misspell
57
61
- nakedret
58
62
- nestif
63
+ - noctx
59
64
- nolintlint
60
65
- prealloc
61
66
- rowserrcheck
62
67
- scopelint
68
+ - sqlclosecheck
63
69
- stylecheck
64
- # - testpackage
65
70
- unconvert
66
71
- unparam
67
72
- whitespace
68
73
- wsl
74
+ # don't enable:
75
+ # - go-header
76
+ # - testpackage
69
77
70
78
issues :
71
79
# enable issues excluded by default
Original file line number Diff line number Diff line change 1
1
.DEFAULT_GOAL := help
2
2
3
- .PHONY : all
4
- all : # # full build
5
- all : install generate build fmt lint test mod-tidy build-snapshot diff
3
+ .PHONY : ci
4
+ all : # # CI build
5
+ all : install generate build lint test mod-tidy build-snapshot diff
6
6
7
7
.PHONY : dev
8
8
dev : # # fast build
@@ -77,7 +77,7 @@ run: ## go run
77
77
go run .
78
78
79
79
.PHONY : docker
80
- docker : # # run in golang container, example: make docker run="make all "
80
+ docker : # # run in golang container, example: make docker run="make ci "
81
81
docker run --rm \
82
82
-v $(CURDIR ) :/repo $(args ) \
83
83
-w /repo \
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/golang-templates/seed
3
3
go 1.14
4
4
5
5
require (
6
- github.com/golangci/golangci-lint v1.27 .0
6
+ github.com/golangci/golangci-lint v1.28 .0
7
7
github.com/goreleaser/goreleaser v0.138.0
8
- golang.org/x/tools v0.0.0-20200608174601-1b747fd94509
8
+ golang.org/x/tools v0.0.0-20200702044944-0cc1aa72b347
9
9
)
You can’t perform that action at this time.
0 commit comments