File tree Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,15 @@ platform:
7
7
arch : amd64
8
8
9
9
steps :
10
+ - name : lint
11
+ image : golangci/golangci-lint:v1.41.1
12
+ commands :
13
+ - golangci-lint run -v
14
+ volumes :
15
+ - name : gopath
16
+ path : /go
17
+
10
18
- name : test
11
- pull : always
12
19
image : golang:1.16
13
20
commands :
14
21
- go test -v -covermode=atomic -coverprofile=coverage.out ./...
17
24
path : /go
18
25
19
26
- name : codecov
20
- pull : always
21
27
image : robertstettner/drone-codecov
22
28
settings :
23
29
token :
Original file line number Diff line number Diff line change
1
+ linters :
2
+ disable-all : true
3
+ enable :
4
+ - bodyclose
5
+ - deadcode
6
+ - depguard
7
+ - dogsled
8
+ - dupl
9
+ - errcheck
10
+ - exportloopref
11
+ - exhaustive
12
+ - gochecknoinits
13
+ - goconst
14
+ - gocritic
15
+ - gocyclo
16
+ - gofmt
17
+ - goimports
18
+ - goprintffuncname
19
+ - gosec
20
+ - gosimple
21
+ - govet
22
+ - ineffassign
23
+ - lll
24
+ - misspell
25
+ - nakedret
26
+ - noctx
27
+ - nolintlint
28
+ - rowserrcheck
29
+ - staticcheck
30
+ - structcheck
31
+ - stylecheck
32
+ - typecheck
33
+ - unconvert
34
+ - unparam
35
+ - unused
36
+ - varcheck
37
+ - whitespace
38
+ - gofumpt
You can’t perform that action at this time.
0 commit comments