|
| 1 | +version: "2" |
| 2 | + |
1 | 3 | linters: |
2 | 4 | enable: |
3 | 5 | - asciicheck |
4 | 6 | - bidichk |
5 | 7 | - bodyclose |
6 | | - #- contextcheck |
7 | 8 | - copyloopvar |
8 | 9 | - dupl |
9 | 10 | - errorlint |
10 | 11 | - gochecknoinits |
11 | 12 | - gocritic |
12 | | - - gofmt |
13 | | - - gofumpt |
14 | 13 | - lll |
15 | 14 | - misspell |
16 | 15 | - nilerr |
17 | 16 | - prealloc |
18 | 17 | - predeclared |
| 18 | + - reassign |
19 | 19 | - revive |
20 | 20 | - usestdlibvars |
21 | 21 | - unconvert |
22 | | - #- usetesting |
23 | 22 | - tparallel |
24 | 23 | - wastedassign |
25 | 24 | - whitespace |
26 | 25 |
|
27 | | -issues: |
28 | | - exclude-use-default: false |
| 26 | + settings: |
| 27 | + errcheck: |
| 28 | + exclude-functions: |
| 29 | + - io.Copy |
| 30 | + - (io.Closer).Close |
| 31 | + - (io.Writer).Write |
| 32 | + - (hash.Hash).Write |
| 33 | + - (net.Conn).Close |
| 34 | + - (net.Conn).SetReadDeadline |
| 35 | + - (net.Conn).SetWriteDeadline |
| 36 | + - (*net.TCPConn).SetKeepAlive |
| 37 | + - (*net.TCPConn).SetKeepAlivePeriod |
| 38 | + - (*net.TCPConn).SetNoDelay |
| 39 | + - (net.Listener).Close |
| 40 | + - (net.PacketConn).Close |
| 41 | + - (net.PacketConn).SetReadDeadline |
| 42 | + - (net.PacketConn).SetWriteDeadline |
| 43 | + - (net/http.ResponseWriter).Write |
| 44 | + - (*net/http.Server).Serve |
| 45 | + - (*net/http.Server).ServeTLS |
| 46 | + - (*net/http.Server).Shutdown |
| 47 | + - os.Chdir |
| 48 | + - os.Mkdir |
| 49 | + - os.MkdirAll |
| 50 | + - os.Remove |
| 51 | + - os.RemoveAll |
| 52 | + - os.Setenv |
| 53 | + - os.Unsetenv |
| 54 | + - (*os.File).WriteString |
| 55 | + - (*os.File).Close |
| 56 | + - (github.com/datarhei/gosrt.Conn).Close |
| 57 | + - (github.com/datarhei/gosrt.Conn).SetReadDeadline |
| 58 | + - (github.com/datarhei/gosrt.Conn).SetWriteDeadline |
| 59 | + - (*github.com/bluenviron/gortsplib/v4.Client).Close |
| 60 | + - (*github.com/bluenviron/gortsplib/v4.Server).Close |
| 61 | + - (*github.com/bluenviron/gortsplib/v4.ServerSession).Close |
| 62 | + - (*github.com/bluenviron/gortsplib/v4.ServerStream).Close |
| 63 | + - (*github.com/bluenviron/gortsplib/v4.ServerConn).Close |
29 | 64 |
|
30 | | -linters-settings: |
31 | | - errcheck: |
32 | | - exclude-functions: |
33 | | - - io.Copy |
34 | | - - (io.Closer).Close |
35 | | - - (io.Writer).Write |
36 | | - - (hash.Hash).Write |
37 | | - - (net.Conn).Close |
38 | | - - (net.Conn).SetReadDeadline |
39 | | - - (net.Conn).SetWriteDeadline |
40 | | - - (*net.TCPConn).SetKeepAlive |
41 | | - - (*net.TCPConn).SetKeepAlivePeriod |
42 | | - - (*net.TCPConn).SetNoDelay |
43 | | - - (net.Listener).Close |
44 | | - - (net.PacketConn).Close |
45 | | - - (net.PacketConn).SetReadDeadline |
46 | | - - (net.PacketConn).SetWriteDeadline |
47 | | - - (net/http.ResponseWriter).Write |
48 | | - - (*net/http.Server).Serve |
49 | | - - (*net/http.Server).ServeTLS |
50 | | - - (*net/http.Server).Shutdown |
51 | | - - os.Chdir |
52 | | - - os.Mkdir |
53 | | - - os.MkdirAll |
54 | | - - os.Remove |
55 | | - - os.RemoveAll |
56 | | - - os.Setenv |
57 | | - - os.Unsetenv |
58 | | - - (*os.File).WriteString |
59 | | - - (*os.File).Close |
60 | | - - (github.com/datarhei/gosrt.Conn).Close |
61 | | - - (github.com/datarhei/gosrt.Conn).SetReadDeadline |
62 | | - - (github.com/datarhei/gosrt.Conn).SetWriteDeadline |
63 | | - - (*github.com/bluenviron/gortsplib/v4.Client).Close |
64 | | - - (*github.com/bluenviron/gortsplib/v4.Server).Close |
65 | | - - (*github.com/bluenviron/gortsplib/v4.ServerSession).Close |
66 | | - - (*github.com/bluenviron/gortsplib/v4.ServerStream).Close |
67 | | - - (*github.com/bluenviron/gortsplib/v4.ServerConn).Close |
| 65 | + govet: |
| 66 | + enable-all: true |
| 67 | + disable: |
| 68 | + - fieldalignment |
| 69 | + - reflectvaluecompare |
68 | 70 |
|
69 | | - govet: |
70 | | - enable-all: true |
71 | | - disable: |
72 | | - - fieldalignment |
73 | | - - reflectvaluecompare |
| 71 | +formatters: |
| 72 | + enable: |
| 73 | + - gofmt |
| 74 | + - gofumpt |
| 75 | + - goimports |
0 commit comments