From 313ceef1ed052f641bf8d552641b3edca2f6fcb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raymond=20Aug=C3=A9?= Date: Sat, 17 May 2025 04:12:45 -0400 Subject: [PATCH] use golangci-lint migrate to eliminate error (#3220) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #3219 Signed-off-by: Raymond Augé --- .golangci.yaml | 62 +++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index b5479505..6d5d312f 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,36 +1,36 @@ +version: "2" linters: enable: - # Default linter - - errcheck - - gosimple - - govet - - ineffassign - - staticcheck - - typecheck - - unused - # Additional linters - - gofmt - - goimports - misspell - nakedret - - unconvert - promlinter - # Enable in future - # - bodyclose - # - dogsled - # - dupl - # - gosec - # - nilerr - # - prealloc - # - revive - # - unparam - # - wrapcheck - # - gocritic -linters-settings: - errcheck: - exclude-functions: - - (*go.uber.org/zap.Logger).Sync - goimports: - # put imports beginning with prefix after 3rd-party packages; - # it's a comma-separated list of prefixes - local-prefixes: github.com/fission/fission + - unconvert + settings: + errcheck: + exclude-functions: + - (*go.uber.org/zap.Logger).Sync + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - gofmt + - goimports + settings: + goimports: + local-prefixes: + - github.com/fission/fission + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$