From 506729480e970dfabd1ff1484127e49b4fa671e7 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Sun, 14 Jul 2024 14:02:13 +0200 Subject: [PATCH] golangci-lint: Don't use deprecated config params Replace deprecated golangci-lint configuration parameters with current equivalents: * `run.skip-files` => `issues.exclude-files` * `run.skip-dirs` => `issues.exclude-dirs` Signed-off-by: Arve Knudsen --- .golangci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 026d68a31..e924fe3d5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,12 +1,5 @@ run: timeout: 15m - skip-files: - # Skip autogenerated files. - - ^.*\.(pb|y)\.go$ - skip-dirs: - # Copied it from a different source - - storage/remote/otlptranslator/prometheusremotewrite - - storage/remote/otlptranslator/prometheus output: sort-results: true @@ -33,6 +26,13 @@ linters: issues: max-same-issues: 0 + exclude-files: + # Skip autogenerated files. + - ^.*\.(pb|y)\.go$ + exclude-dirs: + # Copied it from a different source + - storage/remote/otlptranslator/prometheusremotewrite + - storage/remote/otlptranslator/prometheus exclude-rules: - linters: - gocritic