From f6eda94579505d5a44ab3b4cf14dbfc51fa34db0 Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Tue, 2 Apr 2024 18:33:11 +0200 Subject: [PATCH] Replace run.skip-files with issues.exclude-files in golangci config Address the warning "The configuration option `run.skip-files` is deprecated, please use `issues.exclude-files`." Signed-off-by: Chun-Hung Tseng --- tools/.golangci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/.golangci.yaml b/tools/.golangci.yaml index 34d3878f909..f1e03a6d826 100644 --- a/tools/.golangci.yaml +++ b/tools/.golangci.yaml @@ -1,7 +1,6 @@ --- run: timeout: 30m - skip-files: [^zz_generated.*] issues: max-same-issues: 0 # Excluding configuration per-path, per-linter, per-text and per-source @@ -9,6 +8,8 @@ issues: # exclude ineffassing linter for generated files for conversion - path: conversion\.go linters: [ineffassign] + exclude-files: + - ^zz_generated.* linters: disable-all: true enable: # please keep this alphabetized