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:
parent
f1e0c2a67e
commit
3b4a558af3
3 changed files with 5 additions and 9 deletions
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
|
Loading…
Add table
Reference in a new issue