1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-06 17:14:13 +00:00

chore: update golangci-lint configuration

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2024-05-13 14:55:49 +02:00
parent f1e0c2a67e
commit 3b4a558af3
No known key found for this signature in database
GPG key ID: 0190A66C0A10FC4F
3 changed files with 5 additions and 9 deletions

View file

@ -58,9 +58,6 @@ jobs:
with:
version: v1.57.2
args: --timeout 10m0s --go ${{ env.golang-version }}
# Disable caching as a workaround for https://github.com/golangci/golangci-lint-action/issues/135.
# The line can be removed once the golangci-lint issue is resolved.
skip-pkg-cache: true
check-metrics:
runs-on: ubuntu-latest

View file

@ -19,7 +19,11 @@ issues:
linters-settings:
errcheck:
exclude: scripts/errcheck_excludes.txt
exclude-functions:
# Any error in HTTP handlers is handled by the server itself.
- (net/http.ResponseWriter).Write
# Never check for logger errors.
- (github.com/go-kit/log.Logger).Log
gci:
sections:
- standard

View file

@ -1,5 +0,0 @@
// Any error in HTTP handlers is handled by the server itself.
(net/http.ResponseWriter).Write
// Never check for logger errors.
(github.com/go-kit/log.Logger).Log