From da8e58abf484a24d7f112e5d1463020611486299 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Fri, 22 May 2026 11:27:15 +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