Commit 05b26ee 1 parent aa3e37c commit 05b26ee Copy full SHA for 05b26ee
File tree 2 files changed +70
-1
lines changed
2 files changed +70
-1
lines changed Original file line number Diff line number Diff line change 3
3
paths :
4
4
- ' **.go'
5
5
- ' go.mod'
6
+ - ' **.yml'
6
7
pull_request :
7
8
paths :
8
9
- ' **.go'
9
10
- ' go.mod'
11
+ - ' **.yml'
10
12
11
13
name : Test & Lint
12
14
39
41
- run : go generate ./...
40
42
- name : Go vet
41
43
run : go vet ./...
42
-
43
44
- name : GolangCI-Lint
44
45
uses : golangci/golangci-lint-action@v6
45
46
with :
Original file line number Diff line number Diff line change
1
+ linters-settings :
2
+ errcheck :
3
+ ignore : fmt:.*,io/ioutil:^Read.*
4
+ ignoretests : true
5
+
6
+ goimports :
7
+ local-prefixes : github.com/LagrangeDev/LagrangeGo
8
+
9
+ linters :
10
+ # please, do not use `enable-all`: it's deprecated and will be removed soon.
11
+ # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
12
+ disable-all : true
13
+ fast : false
14
+ enable :
15
+ - bodyclose
16
+ # - depguard
17
+ - dogsled
18
+ - errcheck
19
+ - exportloopref
20
+ - exhaustive
21
+ # - funlen
22
+ # - goconst
23
+ - gocritic
24
+ # - gocyclo
25
+ - gofmt
26
+ - goimports
27
+ - goprintffuncname
28
+ # - gosec
29
+ - gosimple
30
+ - govet
31
+ - ineffassign
32
+ # - misspell
33
+ - nolintlint
34
+ - rowserrcheck
35
+ - staticcheck
36
+ - stylecheck
37
+ - typecheck
38
+ - unconvert
39
+ - unparam
40
+ - unused
41
+ - whitespace
42
+ - prealloc
43
+ - predeclared
44
+ - asciicheck
45
+ - revive
46
+ - forbidigo
47
+ - makezero
48
+
49
+
50
+ run :
51
+ # default concurrency is a available CPU number.
52
+ # concurrency: 4 # explicitly omit this value to fully utilize available resources.
53
+ deadline : 5m
54
+ issues-exit-code : 1
55
+ tests : false
56
+ go : ' 1.23'
57
+
58
+ # output configuration options
59
+ output :
60
+ formats :
61
+ - format : " colored-line-number"
62
+ print-issued-lines : true
63
+ print-linter-name : true
64
+ uniq-by-line : true
65
+
66
+ issues :
67
+ # Fix found issues (if it's supported by the linter)
68
+ fix : true
You can’t perform that action at this time.
0 commit comments