From 74f0a60d61967dd12a19aae4ef0b4da7de2123f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 9 Sep 2025 18:31:49 +0200 Subject: [PATCH] Migrate to golangci-lint 2 --- .golangci.yml | 61 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 52 insertions(+), 9 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2b94076..b2b22cb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,12 +1,55 @@ +version: "2" linters: - presets: - - bugs - - unused + enable: + - asasalint + - asciicheck + - bidichk + - bodyclose + - contextcheck + - durationcheck + - errchkjson + - errorlint + - exhaustive + - gocheckcompilerdirectives + - gochecksumtype + - gosec + - gosmopolitan + - loggercheck + - makezero + - misspell + - musttag + - nilerr + - nilnesserr + - protogetter + - reassign + - recvcheck + - revive + - rowserrcheck + - spancheck + - sqlclosecheck + - staticcheck + - testifylint + - unparam + - zerologlint + disable: + - noctx + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: enable: - gofmt - - misspell - - revive - - stylecheck - disable: - # direnv is not a web server, context is not strictly necessary. - - noctx + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$