databricks-cli/.golangci.yaml

27 lines
710 B
YAML
Raw Normal View History

2024-12-04 17:40:19 +00:00
linters:
disable-all: true
enable:
- bodyclose
- errcheck
2024-12-04 17:40:19 +00:00
- gosimple
#- govet
- ineffassign
- staticcheck
- unused
- gofmt
linters-settings:
gofmt:
rewrite-rules:
- pattern: 'a[b:len(a)]'
replacement: 'a[b:]'
- pattern: 'interface{}'
replacement: 'any'
errcheck:
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
2024-12-04 17:40:19 +00:00
issues:
exclude-dirs-use-default: false # recommended by docs https://golangci-lint.run/usage/false-positives/