databricks-cli/.golangci.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
957 B
YAML
Raw Permalink Normal View History

2024-12-04 17:40:19 +00:00
linters:
disable-all: true
enable:
- bodyclose
2024-12-04 17:40:19 +00:00
- errcheck
- gosimple
- govet
2024-12-04 17:40:19 +00:00
- ineffassign
- staticcheck
- unused
- gofmt
- gofumpt
- goimports
2024-12-04 17:40:19 +00:00
linters-settings:
govet:
enable-all: true
disable:
- fieldalignment
- shadow
2024-12-04 17:40:19 +00:00
gofmt:
rewrite-rules:
- pattern: 'a[b:len(a)]'
replacement: 'a[b:]'
- pattern: 'interface{}'
replacement: 'any'
errcheck:
2024-12-04 17:40:19 +00:00
exclude-functions:
- (*github.com/spf13/cobra.Command).RegisterFlagCompletionFunc
- (*github.com/spf13/cobra.Command).MarkFlagRequired
- (*github.com/spf13/pflag.FlagSet).MarkDeprecated
- (*github.com/spf13/pflag.FlagSet).MarkHidden
gofumpt:
2024-12-04 17:40:19 +00:00
module-path: github.com/databricks/cli
extra-rules: true
#goimports:
2024-12-04 17:40:19 +00:00
# local-prefixes: github.com/databricks/cli
issues:
exclude-dirs-use-default: false # recommended by docs https://golangci-lint.run/usage/false-positives/