diff options
author | Mohammed Al Sahaf <[email protected]> | 2024-07-28 02:20:09 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-27 17:20:09 -0600 |
commit | 9cc26ee7bf323f5fdffdfe7349794aa320a6ce6c (patch) | |
tree | 6fc78dd8af74809d3e07afa576d386a70633fc55 /.golangci.yml | |
parent | 3579815a6c099bfbcff0143f7a251a92b4fa4198 (diff) | |
download | caddy-9cc26ee7bf323f5fdffdfe7349794aa320a6ce6c.tar.gz caddy-9cc26ee7bf323f5fdffdfe7349794aa320a6ce6c.zip |
chore: update golangci config (#6479)
Signed-off-by: Mohammed Al Sahaf <[email protected]>
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.golangci.yml b/.golangci.yml index d144395db..74e3503c4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,9 @@ linters-settings: errcheck: - ignore: fmt:.*,go.uber.org/zap/zapcore:^Add.* - ignoretests: true + exclude-functions: + - fmt.* + - (go.uber.org/zap/zapcore.ObjectEncoder).AddObject + - (go.uber.org/zap/zapcore.ObjectEncoder).AddArray gci: sections: - standard # Standard section: captures all standard packages. @@ -130,13 +132,14 @@ linters: run: # default concurrency is a available CPU number. # concurrency: 4 # explicitly omit this value to fully utilize available resources. - deadline: 5m + timeout: 5m issues-exit-code: 1 tests: false # output configuration options output: - format: 'colored-line-number' + formats: + - format: 'colored-line-number' print-issued-lines: true print-linter-name: true @@ -166,3 +169,6 @@ issues: - path: modules/logging/filters.go linters: - dupl + - path: _test\.go + linters: + - errcheck |