File tree 2 files changed +33
-23
lines changed
2 files changed +33
-23
lines changed Original file line number Diff line number Diff line change 33
33
run : go build -v ./...
34
34
35
35
- name : Lint
36
- uses : golangci/golangci-lint-action@v6
36
+ uses : golangci/golangci-lint-action@v7
37
37
with :
38
38
version : latest
39
39
Original file line number Diff line number Diff line change 1
- run :
2
- timeout : 2m
1
+ version : " 2"
3
2
4
3
linters :
5
4
enable :
6
- # enabled by default
7
- # https://golangci-lint.run/usage/linters/
8
- - govet
9
- - errcheck
10
- - staticcheck
11
- - unused
12
- - gosimple
13
- - ineffassign
14
- - typecheck
15
5
# project additions
16
6
# keep this list alphabetically sorted
17
7
- bodyclose
18
8
- goconst
19
- # - gofmt -- goimports contains this
20
- - goimports
21
9
- gosec
22
10
- misspell
23
11
- nakedret
24
12
- nolintlint
25
13
- prealloc
26
14
- revive
27
15
- unconvert
16
+ settings :
17
+ misspell :
18
+ locale : US
19
+ nakedret :
20
+ max-func-lines : 1
21
+ exclusions :
22
+ generated : lax
23
+ presets :
24
+ - comments
25
+ - common-false-positives
26
+ - legacy
27
+ - std-error-handling
28
+ paths :
29
+ - third_party$
30
+ - builtin$
31
+ - examples$
28
32
29
- linters-settings :
30
- gofmt :
31
- simplify : true
32
- goimports :
33
- local-prefixes : github.com/xen0n/go-workwx
34
- misspell :
35
- locale : US
36
- nakedret :
37
- max-func-lines : 1
33
+ formatters :
34
+ enable :
35
+ - goimports
36
+ settings :
37
+ gofmt :
38
+ simplify : true
39
+ goimports :
40
+ local-prefixes :
41
+ - github.com/xen0n/go-workwx
42
+ exclusions :
43
+ generated : lax
44
+ paths :
45
+ - third_party$
46
+ - builtin$
47
+ - examples$
You can’t perform that action at this time.
0 commit comments