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$