From ac9da50318002fe381c6a9715301ff2e740b45ae Mon Sep 17 00:00:00 2001 From: Tom Fleet Date: Sun, 19 Jan 2025 19:12:30 +0000 Subject: [PATCH] Update rules --- .golangci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index b15feb4..30a8501 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,6 +3,7 @@ linters: disable: - decorder # Don't care about this - dupl # Basically every table driven test ever triggers this + - dupword # Messes with test cases more often than not - err113 # Out of date - exhaustruct # No - exportloopref # Go 1.22+ solves this @@ -103,7 +104,7 @@ linters-settings: - name: comment-spacings arguments: - - "nolint:" # Doesn't recognise this by default + - "nolint:" - name: cyclomatic disabled: true # cyclop does this @@ -132,4 +133,4 @@ linters-settings: - name: unhandled-error arguments: - fmt\.(Fp|P)rint(ln|f)? - - strings.Builder.WriteString + - strings.Builder.Write(String|Byte)?