mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 06:45:27 +01:00
chore: update golangci-lint configuration
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
3
.github/workflows/checks.yaml
vendored
3
.github/workflows/checks.yaml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user