From 9eac3638a01ec19564552e83bafe7c1534b81e6a Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Fri, 22 May 2026 11:27:44 +0100 Subject: [PATCH] Add golangci-lint config enabling stricter linters Enables the same linter set used across other git-pkgs applications (gocritic, gocognit, gocyclo, maintidx, dupl, mnd, unparam, ireturn, goconst, errcheck) and configures goconst to skip test files. --- .golangci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..69e69b6 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,17 @@ +version: "2" + +linters: + enable: + - gocritic + - gocognit + - gocyclo + - maintidx + - dupl + - mnd + - unparam + - ireturn + - goconst + - errcheck + settings: + goconst: + ignore-tests: true