File tree Expand file tree Collapse file tree 3 files changed +42
-34
lines changed Expand file tree Collapse file tree 3 files changed +42
-34
lines changed Original file line number Diff line number Diff line change 2929 go-version : ${{ env.GO_VERSION }}
3030
3131 - name : Run golangci-lint
32- uses : golangci/golangci-lint-action@v6
32+ uses : golangci/golangci-lint-action@v7
3333 with :
34- version : v1.64 .5
34+ version : v2.1 .5
Original file line number Diff line number Diff line change 1+ version : " 2"
12run :
23 timeout : 2m
3-
44linters :
5- disable-all : true
5+ default : none
66 enable :
77 - dupl
88 - errcheck
99 - errname
1010 - errorlint
1111 - funlen
12- - gci
1312 - goconst
1413 - gocritic
1514 - gocyclo
16- - gofmt
17- - goimports
1815 - gosec
19- - gosimple
2016 - govet
2117 - ineffassign
2218 - lll
@@ -27,28 +23,45 @@ linters:
2723 - reassign
2824 - revive
2925 - staticcheck
30- - stylecheck
3126 - thelper
3227 - tparallel
33- - typecheck
3428 - unconvert
3529 - unparam
3630 - unused
3731 - usetesting
38-
39- linters-settings :
40- gocritic :
41- disabled-checks :
42- - exitAfterDefer
43- thelper :
44- test :
45- begin : false
46-
47- issues :
48- exclude-rules :
49- - path : _test\.go
50- linters :
51- - errcheck
52- - unparam
53- - prealloc
54- - funlen
32+ settings :
33+ gocritic :
34+ disabled-checks :
35+ - exitAfterDefer
36+ thelper :
37+ test :
38+ begin : false
39+ exclusions :
40+ generated : lax
41+ presets :
42+ - comments
43+ - common-false-positives
44+ - legacy
45+ - std-error-handling
46+ rules :
47+ - linters :
48+ - errcheck
49+ - funlen
50+ - prealloc
51+ - unparam
52+ path : _test\.go
53+ paths :
54+ - third_party$
55+ - builtin$
56+ - examples$
57+ formatters :
58+ enable :
59+ - gci
60+ - gofmt
61+ - goimports
62+ exclusions :
63+ generated : lax
64+ paths :
65+ - third_party$
66+ - builtin$
67+ - examples$
Original file line number Diff line number Diff line change @@ -16,15 +16,10 @@ import (
1616
1717func main () {
1818 args := os .Args [1 :]
19- runJet := true
2019 if len (args ) > 0 {
21- runJet = false
22- }
23-
24- if runJet {
25- jetStream ()
26- } else {
2720 streaming ()
21+ } else {
22+ jetStream ()
2823 }
2924}
3025
You can’t perform that action at this time.
0 commit comments