File tree Expand file tree Collapse file tree 5 files changed +40
-34
lines changed Expand file tree Collapse file tree 5 files changed +40
-34
lines changed Original file line number Diff line number Diff line change 5
5
- master
6
6
pull_request :
7
7
8
- concurrency :
8
+ concurrency :
9
9
group : ${{ github.workflow }}-${{ github.head_ref }}
10
10
cancel-in-progress : true
11
11
16
16
strategy :
17
17
max-parallel : 1
18
18
matrix :
19
- goVer : ["1.16", "1.17", " 1.18" ]
19
+ goVer : ['1.17', ' 1.18' ]
20
20
steps :
21
21
- uses : actions/checkout@v3
22
22
Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ jobs:
20
20
- name : Setup Go
21
21
uses : actions/setup-go@v3
22
22
with :
23
- go-version : " ^ 1.17.0 "
23
+ go-version : ' 1.17'
24
24
25
25
- name : Install golangci-lint
26
- run :
27
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.0
26
+ run : make install-golangci
28
27
29
28
- name : Reviewdog
30
29
env :
31
30
REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
- run :
33
- $(go env GOPATH)/bin/golangci-lint run --out-format line-number | reviewdog -f=golangci-lint -name=golangci-lint -reporter=github-pr-review
31
+ run : $(go env GOPATH)/bin/golangci-lint run --out-format line-number | reviewdog -f=golangci-lint -name=golangci-lint -reporter=github-pr-review
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ linters-settings:
21
21
- style
22
22
settings :
23
23
hugeParam :
24
- sizeThreshold : 377
24
+ sizeThreshold : 512
25
25
rangeValCopy :
26
26
sizeThreshold : 364
27
27
skipTestFuncs : true
38
38
linters :
39
39
enable-all : true
40
40
disable :
41
- - wrapcheck
42
- - varnamelen
43
- - thelper
44
- - tagliatelle
45
- - paralleltest
46
- - nlreturn
47
- - exhaustivestruct
48
- - wsl
49
- - goerr113
50
- - golint
51
- - gochecknoglobals
52
- - scopelint
53
- - funlen
54
- - lll
55
- - maligned
56
- - gomnd
57
- - godox
58
- - interfacer
41
+ - contextcheck
42
+ - exhaustivestruct
43
+ - exhaustruct
44
+ - funlen
45
+ - gochecknoglobals
46
+ - godox
47
+ - goerr113
48
+ - golint
49
+ - gomnd
50
+ - interfacer
51
+ - lll
52
+ - maligned
53
+ - nlreturn
54
+ - nonamedreturns
55
+ - paralleltest
56
+ - scopelint
57
+ - tagliatelle
58
+ - thelper
59
+ - varnamelen
60
+ - wrapcheck
61
+ - wsl
59
62
issues :
60
63
exclude-rules :
61
64
- linters :
62
65
- stylecheck
63
- text : " ST1003:" # should not use underscores in package names
66
+ text : ' ST1003:' # should not use underscores in package names
64
67
- linters :
65
68
- revive
66
69
text : " don't use an underscore in package name"
67
70
- linters :
68
- - gocritic
69
- text : " commentFormatting"
71
+ - gocritic
72
+ text : ' commentFormatting'
70
73
- path : _test\.go
71
74
linters :
72
- - gosec
73
- - testpackage # makes you use a separate _test package
75
+ - gosec
76
+ - testpackage # makes you use a separate _test package
Original file line number Diff line number Diff line change 1
- GOLANGCI_VERSION = 1.44.0
1
+ GOLANGCI_VERSION = 1.46.2
2
2
GOLANGCI = vendor/golangci-lint/$(GOLANGCI_VERSION ) /golangci-lint
3
3
4
4
install-golangci :
Original file line number Diff line number Diff line change 1
1
module github.com/GetStream/stream-chat-go/v5
2
2
3
- go 1.16
3
+ go 1.17
4
4
5
5
require (
6
- github.com/davecgh/go-spew v1.1.1 // indirect
7
6
github.com/golang-jwt/jwt/v4 v4.0.0
8
7
github.com/stretchr/testify v1.7.0
9
8
)
9
+
10
+ require (
11
+ github.com/davecgh/go-spew v1.1.1 // indirect
12
+ github.com/pmezard/go-difflib v1.0.0 // indirect
13
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
14
+ )
You can’t perform that action at this time.
0 commit comments