From e75b7a509a720931cbe29c83c0c684388d257c80 Mon Sep 17 00:00:00 2001 From: prdai Date: Sun, 3 May 2026 18:43:16 +0530 Subject: [PATCH 1/3] chore: update golangci config to v2 --- .golangci.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 823ab972..5b452dc5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,19 +1,26 @@ # Refer to golangci-lint's example config file for more options and information: # https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml +version: "2" run: - timeout: 5m modules-download-mode: readonly - linters: - enable: - - errcheck - - goimports - - golint - - govet - - staticcheck - + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$ issues: - exclude-use-default: false max-issues-per-linter: 0 max-same-issues: 0 +formatters: + enable: + - goimports + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$ + From e555204485ef454d8d71a6d4d5753d6f76bb071a Mon Sep 17 00:00:00 2001 From: prdai Date: Sun, 3 May 2026 18:47:47 +0530 Subject: [PATCH 2/3] chore: fix v2 migration to match the previous version the previous commit just random golangci-lint migrate which does not properly migrate things over --- .golangci.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5b452dc5..610ba55c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,22 +5,13 @@ version: "2" run: modules-download-mode: readonly linters: - exclusions: - generated: lax - paths: - - third_party$ - - builtin$ - - examples$ -issues: - max-issues-per-linter: 0 - max-same-issues: 0 + enable: + - errcheck + - govet + - staticcheck formatters: enable: - goimports - exclusions: - generated: lax - paths: - - third_party$ - - builtin$ - - examples$ - +issues: + max-issues-per-linter: 0 + max-same-issues: 0 From c04abd4dc7b7c6e48470f6425f57d5ca97436f79 Mon Sep 17 00:00:00 2001 From: prdai Date: Sun, 3 May 2026 18:50:24 +0530 Subject: [PATCH 3/3] chore: add back timeout --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 610ba55c..4ee8936f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,6 +3,7 @@ version: "2" run: + timeout: 5m modules-download-mode: readonly linters: enable: