From 6bf7b64ea8e99f13f9e7a14c99099be49b6b197a Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Mon, 9 Feb 2026 14:15:47 -0800 Subject: [PATCH] Add golangci-lint config Check in a .golangci.yml so the repo has a consistent linter setup. Uses the v2 config format with the standard linter set plus bodyclose, errorlint, gocritic, gosec, misspell, noctx, and prealloc. Closes #561 --- .golangci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 00000000..f0888a9f --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,15 @@ +version: "2" + +linters: + default: standard + enable: + - bodyclose + - errorlint + - gocritic + - gosec + - misspell + - noctx + - prealloc + +issues: + max-same-issues: 0