From cf9dc3905367ba8d16435f8899f2668bd0ae95fd Mon Sep 17 00:00:00 2001 From: sneak Date: Sun, 20 Sep 2026 22:56:40 -0700 Subject: [PATCH] latest --- .golangci.yml | 34 ++++++++++++++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..1eadd9c --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,34 @@ +version: "2" + +run: + timeout: 5m + modules-download-mode: readonly + +linters: + default: all + enable: + - gomodguard_v2 + 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 diff --git a/Makefile b/Makefile index 25604ad..4f31c61 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ test: lint # Run linter lint: - golangci-lint run + golangci-lint run --config .golangci.yml ./... # Format code fmt: