From d59419e94e9f7878280d8d89f514ce52a0c35d00 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Fri, 22 May 2026 11:25:49 +0100 Subject: [PATCH] Add golangci-lint config with goconst.ignore-tests Test tables tend to repeat literal version strings and package names across independent cases, and extracting those into shared constants makes assertions harder to read. Set goconst to skip test files so the linter stays useful for production code without that noise. --- .golangci.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..615a539 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,6 @@ +version: "2" + +linters: + settings: + goconst: + ignore-tests: true