2020-04-01 18:33:40 -07:00
|
|
|
linters-settings:
|
2020-05-18 21:55:54 -07:00
|
|
|
golint:
|
|
|
|
|
min-confidence: 0
|
|
|
|
|
|
2020-04-01 18:33:40 -07:00
|
|
|
misspell:
|
|
|
|
|
locale: US
|
2022-08-17 13:05:07 -05:00
|
|
|
|
2022-08-05 08:07:38 -07:00
|
|
|
goheader:
|
|
|
|
|
values:
|
|
|
|
|
regexp:
|
|
|
|
|
copyright-holder: Copyright \(c\) (20\d\d\-20\d\d)|2021|({{year}})
|
|
|
|
|
template-path: .license.tmpl
|
2020-04-01 18:33:40 -07:00
|
|
|
|
|
|
|
|
linters:
|
|
|
|
|
disable-all: true
|
|
|
|
|
enable:
|
|
|
|
|
- typecheck
|
|
|
|
|
- goimports
|
|
|
|
|
- misspell
|
|
|
|
|
- govet
|
2021-06-07 20:53:03 -07:00
|
|
|
- revive
|
2020-04-01 18:33:40 -07:00
|
|
|
- ineffassign
|
|
|
|
|
- gosimple
|
|
|
|
|
- deadcode
|
2022-05-05 13:44:10 -07:00
|
|
|
- structcheck
|
|
|
|
|
- gomodguard
|
|
|
|
|
- gofmt
|
2020-05-18 21:55:54 -07:00
|
|
|
- unused
|
2020-04-01 18:33:40 -07:00
|
|
|
- structcheck
|
2022-05-05 13:44:10 -07:00
|
|
|
- unconvert
|
|
|
|
|
- varcheck
|
|
|
|
|
- gocritic
|
|
|
|
|
- gofumpt
|
|
|
|
|
- tenv
|
|
|
|
|
- durationcheck
|
2022-01-25 10:48:49 -08:00
|
|
|
|
2020-05-18 21:55:54 -07:00
|
|
|
service:
|
2022-01-25 10:48:49 -08:00
|
|
|
golangci-lint-version: 1.43.0 # use the fixed version to not introduce new linters unexpectedly
|
2020-07-01 18:03:22 -07:00
|
|
|
|
2021-06-07 20:53:03 -07:00
|
|
|
issues:
|
|
|
|
|
exclude-use-default: false
|
|
|
|
|
exclude:
|
2022-08-17 13:05:07 -05:00
|
|
|
- should have a package comment
|
|
|
|
|
# TODO(y4m4): Remove once all exported ident. have comments!
|
|
|
|
|
- comment on exported function
|
|
|
|
|
- comment on exported type
|
|
|
|
|
- should have comment
|
|
|
|
|
- use leading k in Go names
|
|
|
|
|
- comment on exported const
|
2020-07-01 18:03:22 -07:00
|
|
|
run:
|
|
|
|
|
skip-dirs:
|
|
|
|
|
- pkg/clientgen
|
2022-01-25 10:48:49 -08:00
|
|
|
- pkg/apis/networking.gke.io
|
2022-08-17 13:05:07 -05:00
|
|
|
- restapi/operations
|