Skip to content

Commit 1061ecb

Browse files
authored
sync golangci-lint settings (#277)
1 parent debacf3 commit 1061ecb

1 file changed

Lines changed: 75 additions & 64 deletions

File tree

.golangci.yml

Lines changed: 75 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -2,84 +2,95 @@ version: "2"
22

33
linters:
44
enable:
5-
- asciicheck
6-
- bidichk
7-
- bodyclose
8-
- copyloopvar
9-
- dupl
10-
- errorlint
11-
- gochecknoinits
12-
- gocritic
13-
- lll
14-
- misspell
15-
- modernize
16-
- nilerr
17-
- prealloc
18-
- predeclared
19-
- reassign
20-
- revive
21-
- usestdlibvars
22-
- unconvert
23-
- tparallel
24-
- wastedassign
25-
- whitespace
5+
- asciicheck
6+
- bidichk
7+
- bodyclose
8+
- copyloopvar
9+
- dupl
10+
- errorlint
11+
- gochecknoinits
12+
- gocritic
13+
- lll
14+
- misspell
15+
- modernize
16+
- nilerr
17+
- prealloc
18+
- predeclared
19+
- reassign
20+
- revive
21+
- usestdlibvars
22+
- unconvert
23+
- tparallel
24+
- wastedassign
25+
- whitespace
2626

2727
settings:
2828
errcheck:
2929
exclude-functions:
30-
- io.Copy
31-
- (io.Closer).Close
32-
- (io.Writer).Write
33-
- (hash.Hash).Write
34-
- (net.Conn).Close
35-
- (net.Conn).SetReadDeadline
36-
- (net.Conn).SetWriteDeadline
37-
- (*net.TCPConn).SetKeepAlive
38-
- (*net.TCPConn).SetKeepAlivePeriod
39-
- (*net.TCPConn).SetNoDelay
40-
- (net.Listener).Close
41-
- (net.PacketConn).Close
42-
- (net.PacketConn).SetReadDeadline
43-
- (net.PacketConn).SetWriteDeadline
44-
- (net/http.ResponseWriter).Write
45-
- (*net/http.Server).Serve
46-
- (*net/http.Server).ServeTLS
47-
- (*net/http.Server).Shutdown
48-
- os.Chdir
49-
- os.Mkdir
50-
- os.MkdirAll
51-
- os.Remove
52-
- os.RemoveAll
53-
- os.Setenv
54-
- os.Unsetenv
55-
- (*os.File).WriteString
56-
- (*os.File).Close
57-
- (github.com/datarhei/gosrt.Conn).Close
58-
- (github.com/datarhei/gosrt.Conn).SetReadDeadline
59-
- (github.com/datarhei/gosrt.Conn).SetWriteDeadline
60-
- (*github.com/bluenviron/gortsplib/v5.Client).Close
61-
- (*github.com/bluenviron/gortsplib/v5.Server).Close
62-
- (*github.com/bluenviron/gortsplib/v5.ServerSession).Close
63-
- (*github.com/bluenviron/gortsplib/v5.ServerStream).Close
64-
- (*github.com/bluenviron/gortsplib/v5.ServerConn).Close
30+
- io.Copy
31+
- (io.Closer).Close
32+
- (io.Writer).Write
33+
- (hash.Hash).Write
34+
- (net.Conn).Close
35+
- (net.Conn).SetReadDeadline
36+
- (net.Conn).SetWriteDeadline
37+
- (*net.TCPConn).SetKeepAlive
38+
- (*net.TCPConn).SetKeepAlivePeriod
39+
- (*net.TCPConn).SetNoDelay
40+
- (net.Listener).Close
41+
- (net.PacketConn).Close
42+
- (net.PacketConn).SetReadDeadline
43+
- (net.PacketConn).SetWriteDeadline
44+
- (net/http.ResponseWriter).Write
45+
- (*net/http.Server).Serve
46+
- (*net/http.Server).ServeTLS
47+
- (*net/http.Server).Shutdown
48+
- os.Chdir
49+
- os.Mkdir
50+
- os.MkdirAll
51+
- os.Remove
52+
- os.RemoveAll
53+
- os.Setenv
54+
- os.Unsetenv
55+
- (*os.File).WriteString
56+
- (*os.File).Close
57+
- (github.com/datarhei/gosrt.Conn).Close
58+
- (github.com/datarhei/gosrt.Conn).SetReadDeadline
59+
- (github.com/datarhei/gosrt.Conn).SetWriteDeadline
60+
- (*github.com/bluenviron/gortsplib/v5.Client).Close
61+
- (*github.com/bluenviron/gortsplib/v5.Server).Close
62+
- (*github.com/bluenviron/gortsplib/v5.ServerSession).Close
63+
- (*github.com/bluenviron/gortsplib/v5.ServerStream).Close
64+
- (*github.com/bluenviron/gortsplib/v5.ServerConn).Close
6565

6666
govet:
6767
enable-all: true
6868
disable:
69-
- fieldalignment
70-
- reflectvaluecompare
69+
- fieldalignment
70+
- reflectvaluecompare
7171
settings:
7272
shadow:
7373
strict: true
7474

7575
modernize:
7676
disable:
77-
- reflecttypefor
78-
- stringsbuilder
79-
- testingcontext
77+
- reflecttypefor
78+
- stringsbuilder
79+
- testingcontext
80+
81+
revive:
82+
enable-default-rules: true
83+
rules:
84+
- name: redundant-import-alias
85+
86+
exclusions:
87+
rules:
88+
- linters:
89+
- lll
90+
source: "^\\s*// https?://"
8091

8192
formatters:
8293
enable:
83-
- gofmt
84-
- gofumpt
85-
- goimports
94+
- gofmt
95+
- gofumpt
96+
- goimports

0 commit comments

Comments
 (0)