File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 - name : Run golangci-lint
4141 uses : golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
4242 with :
43- version : v1.64.8 # need to be updated
43+ version : v2.8.0
4444 working-directory : focalboard/server
4545
4646 dist :
Original file line number Diff line number Diff line change 3838 - name : Run golangci-lint
3939 uses : golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
4040 with :
41- version : v1.64.8 # need to be updated
41+ version : v2.8.0
4242 working-directory : focalboard/server
Original file line number Diff line number Diff line change 1+ version : " 2"
12run :
2- timeout : 5m
33 modules-download-mode : readonly
4-
5- linters-settings :
6- gofmt :
7- simplify : true
8- goimports :
9- local-prefixes : github.com/mattermost/mattermost-starter-template
10- golint :
11- min-confidence : 0
12- govet :
13- enable-all : true
14- disable :
15- - fieldalignment
16- misspell :
17- locale : US
18- lll :
19- line-length : 150
20- revive :
21- enableAllRules : true
22- rules :
23- - name : exported
24- disabled : true
25-
264linters :
27- disable-all : true
28- settings :
29- govet :
30- enable :
31- - shadow
5+ default : none
326 enable :
33- - gofmt
34- - goimports
35- - ineffassign
36- - unparam
37- - govet
7+ - asciicheck
388 - bodyclose
9+ - copyloopvar
10+ - dogsled
3911 - durationcheck
12+ - err113
4013 - errorlint
4114 - exhaustive
42- - copyloopvar
43- - gosec
44- - makezero
45- - staticcheck
46- - prealloc
47- - asciicheck
48- - dogsled
4915 - gocritic
16+ - gocyclo
5017 - godot
51- - err113
5218 - goheader
53- - revive
54- - nakedret
5519 - gomodguard
5620 - goprintffuncname
57- - gosimple
21+ - gosec
22+ - govet
23+ - ineffassign
24+ - makezero
5825 - misspell
26+ - nakedret
5927 - nolintlint
60- - typecheck
28+ - prealloc
29+ - revive
30+ - staticcheck
6131 - unconvert
32+ - unparam
6233 - unused
6334 - whitespace
64- - gocyclo
65-
66- issues :
67- exclude-files :
68- - product/boards_product.go
69- - services/store/sqlstore/migrations
70- exclude-rules :
71- - path : server/manifest.go
72- linters :
73- - unused
74- - path : server/configuration.go
75- linters :
76- - unused
77- - path : _test\.go
78- linters :
79- - bodyclose
80- - scopelint # https://github.com/kyoh86/scopelint/issues/4
35+ settings :
36+ govet :
37+ disable :
38+ - fieldalignment
39+ enable-all : true
40+ lll :
41+ line-length : 150
42+ misspell :
43+ locale : US
44+ revive :
45+ rules :
46+ - name : exported
47+ disabled : true
48+ exclusions :
49+ generated : lax
50+ presets :
51+ - comments
52+ - common-false-positives
53+ - legacy
54+ - std-error-handling
55+ rules :
56+ - linters :
57+ - unused
58+ path : server/manifest.go
59+ - linters :
60+ - unused
61+ path : server/configuration.go
62+ - linters :
63+ - bodyclose
64+ - scopelint
65+ path : _test\.go
66+ paths :
67+ - product/boards_product.go
68+ - services/store/sqlstore/migrations
69+ - third_party$
70+ - builtin$
71+ - examples$
72+ formatters :
73+ enable :
74+ - gofmt
75+ - goimports
76+ settings :
77+ gofmt :
78+ simplify : true
79+ goimports :
80+ local-prefixes :
81+ - github.com/mattermost/mattermost-starter-template
82+ exclusions :
83+ generated : lax
84+ paths :
85+ - product/boards_product.go
86+ - services/store/sqlstore/migrations
87+ - third_party$
88+ - builtin$
89+ - examples$
You can’t perform that action at this time.
0 commit comments