2021-01-05 01:10:57 +03:00
|
|
|
run:
|
|
|
|
timeout: 10m
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
goimports:
|
|
|
|
local-prefixes: vitess.io/vitess
|
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
# Defaults
|
|
|
|
- deadcode
|
2021-01-05 18:38:58 +03:00
|
|
|
# - errcheck
|
2021-01-05 01:10:57 +03:00
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- typecheck
|
|
|
|
- varcheck
|
|
|
|
|
|
|
|
# Extras
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
|
2021-01-14 05:18:28 +03:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- path: '^go/vt/proto/'
|
|
|
|
linters:
|
|
|
|
- goimports
|
|
|
|
|
2021-01-05 01:10:57 +03:00
|
|
|
# https://github.com/golangci/golangci/wiki/Configuration
|
|
|
|
service:
|
2021-01-07 09:44:15 +03:00
|
|
|
golangci-lint-version: 1.31.0 # use the fixed version to not introduce new linters unexpectedly
|