From e775d98eb690c7d6c5bbe2484e6a5ad726d28c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20M=C3=A4rak=20Leffler?= Date: Thu, 18 Jun 2026 20:48:36 +0200 Subject: [PATCH] Enable the dupl linter. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/podman-container-tools/container-libs/issues/128 Signed-off-by: Anders Märak Leffler --- .golangci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index ad4dec0c16..7fc7ce433d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,11 +8,18 @@ linters: enable: - nolintlint - unconvert + - dupl exclusions: presets: - comments - std-error-handling + rules: + - path: '(.+)_test\.go' + linters: + - dupl settings: + dupl: + threshold: 200 staticcheck: checks: - all