From dcd9a58bb8cd4f094de381a323889f2ea195b99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 28 Mar 2024 00:04:18 +0100 Subject: [PATCH] Allow copyloopvar aliases --- .golangci.yaml | 2 ++ internal/golangcilint/golangci_lint.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index c62651f..2885a8b 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -25,6 +25,8 @@ issues: max-same-issues: 0 linters-settings: + copyloopvar: + ignore-alias: true dupl: # Tokens count to trigger issue, 150 by default. threshold: 100 diff --git a/internal/golangcilint/golangci_lint.go b/internal/golangcilint/golangci_lint.go index 2ad776b..1588444 100644 --- a/internal/golangcilint/golangci_lint.go +++ b/internal/golangcilint/golangci_lint.go @@ -55,6 +55,8 @@ issues: max-same-issues: 0 linters-settings: + copyloopvar: + ignore-alias: true dupl: # Tokens count to trigger issue, 150 by default. threshold: 100