mediamtx/.golangci.yml

67 lines
1.6 KiB
YAML
Raw Normal View History

2020-12-06 11:22:00 +00:00
linters:
enable:
2021-05-16 12:47:52 +00:00
- bodyclose
2021-10-30 11:06:29 +00:00
- dupl
2021-03-31 19:13:09 +00:00
- exportloopref
2021-05-16 12:47:52 +00:00
- gochecknoinits
2021-03-20 13:14:41 +00:00
- gocritic
2020-12-06 11:22:00 +00:00
- gofmt
2021-05-23 16:43:49 +00:00
- gofumpt
2021-09-09 21:05:54 +00:00
- lll
2023-07-24 17:59:26 +00:00
- misspell
- nilerr
2021-03-20 15:15:45 +00:00
- prealloc
2021-12-21 22:26:27 +00:00
- revive
2020-12-30 16:15:00 +00:00
- unconvert
2023-07-24 17:59:26 +00:00
- wastedassign
2021-10-30 11:06:29 +00:00
- whitespace
2020-12-08 11:37:31 +00:00
issues:
exclude-use-default: false
2022-03-13 13:49:50 +00:00
linters-settings:
2023-08-13 14:38:23 +00:00
errcheck:
exclude-functions:
- io.Copy
- (io.Closer).Close
- (io.Writer).Write
- (hash.Hash).Write
- (net.Conn).Close
- (net.Conn).SetReadDeadline
- (net.Conn).SetWriteDeadline
- (*net.TCPConn).SetKeepAlive
- (*net.TCPConn).SetKeepAlivePeriod
- (*net.TCPConn).SetNoDelay
- (net.Listener).Close
- (net.PacketConn).Close
- (net.PacketConn).SetReadDeadline
- (net.PacketConn).SetWriteDeadline
- (net/http.ResponseWriter).Write
- (*net/http.Server).Serve
- (*net/http.Server).ServeTLS
- (*net/http.Server).Shutdown
- os.Chdir
- os.Mkdir
- os.MkdirAll
- os.Remove
- os.RemoveAll
- os.Setenv
- os.Unsetenv
- (*os.File).WriteString
- (*os.File).Close
- (github.com/datarhei/gosrt.Conn).Close
- (github.com/datarhei/gosrt.Conn).SetReadDeadline
- (github.com/datarhei/gosrt.Conn).SetWriteDeadline
2023-08-26 16:54:28 +00:00
- (*github.com/bluenviron/gortsplib/v4.Client).Close
- (*github.com/bluenviron/gortsplib/v4.Server).Close
- (*github.com/bluenviron/gortsplib/v4.ServerSession).Close
- (*github.com/bluenviron/gortsplib/v4.ServerStream).Close
- (*github.com/bluenviron/gortsplib/v4.ServerConn).Close
2023-08-13 14:38:23 +00:00
2022-03-13 13:49:50 +00:00
govet:
enable-all: true
disable:
- fieldalignment
- reflectvaluecompare
- shadow