From 51223600189c9030798795756fbcf927a79a56f5 Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Fri, 4 Apr 2025 08:32:42 -0500 Subject: [PATCH] migrate golangci-lint config --- .golangci.yaml | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 6cbb5aea..811529fe 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,27 +1,30 @@ -run: - timeout: 3m - +version: "2" linters: enable: - - wsl - nlreturn - - tagalign - revive + - tagalign - testpackage - - errcheck - - gosimple - - govet - - ineffassign - - staticcheck - - unused - -output: - sort-results: true - + - wsl + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ issues: - # disable the default limit so we see everything - max-same-issues: 0 max-issues-per-linter: 0 - - # default enable fix where the linter supports - fix: true \ No newline at end of file + max-same-issues: 0 + fix: true +formatters: + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$