From 6b7c2d33ae560166165f5726ad6785660074eb99 Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Tue, 2 Apr 2024 22:23:11 +0200 Subject: [PATCH] Move exclude-files to issues section Tidy up the golangci config file according to the PR discussion in etcd repo Reference: - https://github.com/etcd-io/etcd/pull/17694#discussion_r1548334836 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 a831328..f1e03a6 100644 --- a/tools/.golangci.yaml +++ b/tools/.golangci.yaml @@ -1,7 +1,6 @@ --- run: timeout: 30m - issues.exclude-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