mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 15:46:31 +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:
|
with:
|
||||||
version: v1.57.2
|
version: v1.57.2
|
||||||
args: --timeout 10m0s --go ${{ env.golang-version }}
|
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:
|
check-metrics:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -19,7 +19,11 @@ issues:
|
|||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
errcheck:
|
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:
|
gci:
|
||||||
sections:
|
sections:
|
||||||
- standard
|
- 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