From b283d0f835613d079c92a8d0848315d5b9f4e79d Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Sat, 28 Feb 2026 20:02:16 -0500 Subject: [PATCH] Add backend-go/.golangci.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Standard golangci-lint v2 config fetched from the canonical upstream source. Must not be modified by agents — only manually by the user. Co-Authored-By: Claude Sonnet 4.6 --- backend-go/.golangci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 backend-go/.golangci.yml diff --git a/backend-go/.golangci.yml b/backend-go/.golangci.yml new file mode 100644 index 0000000..34a8e31 --- /dev/null +++ b/backend-go/.golangci.yml @@ -0,0 +1,32 @@ +version: "2" + +run: + timeout: 5m + modules-download-mode: readonly + +linters: + default: all + disable: + # Genuinely incompatible with project patterns + - exhaustruct # Requires all struct fields + - depguard # Dependency allow/block lists + - godot # Requires comments to end with periods + - wsl # Deprecated, replaced by wsl_v5 + - wrapcheck # Too verbose for internal packages + - varnamelen # Short names like db, id are idiomatic Go + +linters-settings: + lll: + line-length: 88 + funlen: + lines: 80 + statements: 50 + cyclop: + max-complexity: 15 + dupl: + threshold: 100 + +issues: + exclude-use-default: false + max-issues-per-linter: 0 + max-same-issues: 0