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 29
29
go-version : ${{ env.GO_VERSION }}
30
30
31
31
- name : Run golangci-lint
32
- uses : golangci/golangci-lint-action@v6
32
+ uses : golangci/golangci-lint-action@v7
33
33
with :
34
- version : v1.64 .5
34
+ version : v2.1 .5
Original file line number Diff line number Diff line change
1
+ version : " 2"
1
2
run :
2
3
timeout : 2m
3
-
4
4
linters :
5
- disable-all : true
5
+ default : none
6
6
enable :
7
7
- dupl
8
8
- errcheck
9
9
- errname
10
10
- errorlint
11
11
- funlen
12
- - gci
13
12
- goconst
14
13
- gocritic
15
14
- gocyclo
16
- - gofmt
17
- - goimports
18
15
- gosec
19
- - gosimple
20
16
- govet
21
17
- ineffassign
22
18
- lll
@@ -27,28 +23,45 @@ linters:
27
23
- reassign
28
24
- revive
29
25
- staticcheck
30
- - stylecheck
31
26
- thelper
32
27
- tparallel
33
- - typecheck
34
28
- unconvert
35
29
- unparam
36
30
- unused
37
31
- 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 (
16
16
17
17
func main () {
18
18
args := os .Args [1 :]
19
- runJet := true
20
19
if len (args ) > 0 {
21
- runJet = false
22
- }
23
-
24
- if runJet {
25
- jetStream ()
26
- } else {
27
20
streaming ()
21
+ } else {
22
+ jetStream ()
28
23
}
29
24
}
30
25
You can’t perform that action at this time.
0 commit comments