@marcel91200 / caddy Mirror · read-only / commits / 9cc26ee7
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 12, 10:45 UTC

chore: update golangci config (#6479)

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

Mohammed Al Sahaf committed Jul 28, 2024 at 02:20 UTC 9cc26ee7bf323f5fdffdfe7349794aa320a6ce6c
1 file changed +10 -4
.golangci.yml
+10 -4
@@ -1,7 +1,9 @@
1 linters-settings:
2 errcheck:
3 - ignore: fmt:.*,go.uber.org/zap/zapcore:^Add.*
4 - ignoretests: true
3 + exclude-functions:
4 + - fmt.*
5 + - (go.uber.org/zap/zapcore.ObjectEncoder).AddObject
6 + - (go.uber.org/zap/zapcore.ObjectEncoder).AddArray
7 gci:
8 sections:
9 - standard # Standard section: captures all standard packages.
@@ -130,13 +132,14 @@ linters:
132 run:
133 # default concurrency is a available CPU number.
134 # concurrency: 4 # explicitly omit this value to fully utilize available resources.
133 - deadline: 5m
135 + timeout: 5m
136 issues-exit-code: 1
137 tests: false
138
139 # output configuration options
140 output:
139 - format: 'colored-line-number'
141 + formats:
142 + - format: 'colored-line-number'
143 print-issued-lines: true
144 print-linter-name: true
145
@@ -166,3 +169,6 @@ issues:
169 - path: modules/logging/filters.go
170 linters:
171 - dupl
172 + - path: _test\.go
173 + linters:
174 + - errcheck