golangci-lint: inline logcheck configuration

This has the advantage that the golangci-lint cache gets invalidated
automatically each time the logcheck config changes.
This commit is contained in:
Patrick Ohly
2023-06-06 11:26:57 +02:00
parent 49084fe577
commit b450224c12
6 changed files with 137 additions and 10 deletions

View File

@@ -159,6 +159,9 @@ linters-settings: # please keep this alphabetized
path: ../_output/local/bin/logcheck.so
description: structured logging checker
original-url: k8s.io/logtools/logcheck
settings:
config: |
{{include "hack/logcheck.conf" | indent 10 | trim}}
forbidigo:
analyze-types: true
forbid: