From d2df45c36e4e5dc534f843f7958784b41d433d14 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 26 Jun 2025 16:41:12 -0400 Subject: [PATCH] chore: run `golangci-lint migrate` Signed-off-by: Rui Chen --- .golangci.yml | 53 ++++++++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 0afa70118..a77bcb8be 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,32 +1,37 @@ -linters-settings: - misspell: - # Correct spellings using locale preferences for US or UK. - # Default is to use a neutral variety of English. - # Setting locale to US will correct the British spelling of 'colour' to 'color'. - # locale: US - ignore-words: - # for gitlab notes api - - noteable - revive: - rules: - - name: dot-imports - disabled: true - +version: "2" linters: enable: - - errcheck - gochecknoinits - - gofmt - gosec - - gosimple - - govet - - ineffassign - misspell - revive - - staticcheck - testifylint - - typecheck - unconvert - - unused -run: - timeout: 10m + settings: + misspell: + ignore-rules: + - noteable + revive: + rules: + - name: dot-imports + disabled: true + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - gofmt + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$