diff --git a/.golangci.yml b/.golangci.yml index c3b5084..c90f031 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -30,33 +30,12 @@ linters: - text: '(slog|log)\.\w+' linters: - noctx - - text: "var-naming" - linters: - - revive - # This package is a thin wrapper around x/crypto/ssh and the stdlib. - # Errors are passed through as-is by design; wrapping them adds no - # value to the caller. - - text: "error returned from (external package|interface method)" - linters: - - wrapcheck - # Port numbers, terminal dimensions, and exit codes are all bounded - # by the SSH protocol and cannot overflow in practice. - - text: "G115: integer overflow conversion" - linters: - - gosec - # net.Listen in this package is for server-side sockets, not HTTP - # client requests. - - text: "net.Listen must not be called" - linters: - - noctx - # The accept loop backoff pattern matches net/http and is not - # improved by further extraction. - - text: "`if e != nil` has complex nested blocks" - linters: - - nestif generated: lax presets: - common-false-positives + settings: + exhaustive: + default-signifies-exhaustive: true issues: max-issues-per-linter: 0 max-same-issues: 0