2024-12-04 17:40:19 +00:00
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
2024-12-05 19:11:49 +00:00
|
|
|
- bodyclose
|
2024-12-04 17:40:19 +00:00
|
|
|
- errcheck
|
|
|
|
- gosimple
|
2024-12-11 16:42:03 +00:00
|
|
|
- govet
|
2024-12-04 17:40:19 +00:00
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- unused
|
|
|
|
- gofmt
|
2024-12-12 09:28:42 +00:00
|
|
|
- gofumpt
|
|
|
|
- goimports
|
2024-12-04 17:40:19 +00:00
|
|
|
linters-settings:
|
2024-12-11 16:42:03 +00:00
|
|
|
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:]'
|
2024-12-05 15:37:24 +00:00
|
|
|
- pattern: 'interface{}'
|
|
|
|
replacement: 'any'
|
2024-12-11 12:26:00 +00:00
|
|
|
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
|
2024-12-11 12:26:00 +00:00
|
|
|
- (*github.com/spf13/pflag.FlagSet).MarkHidden
|
2024-12-12 09:28:42 +00:00
|
|
|
gofumpt:
|
2024-12-04 17:40:19 +00:00
|
|
|
module-path: github.com/databricks/cli
|
2024-12-12 09:28:42 +00:00
|
|
|
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/
|