2021-04-09 22:05:22 +02:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
govet:
|
2024-05-09 23:46:41 +02:00
|
|
|
enable:
|
|
|
|
- shadow
|
2021-04-09 22:05:22 +02:00
|
|
|
goconst:
|
|
|
|
min-len: 2
|
|
|
|
min-occurrences: 2
|
|
|
|
misspell:
|
|
|
|
locale: US
|
|
|
|
lll:
|
|
|
|
line-length: 140
|
|
|
|
gocritic:
|
|
|
|
enabled-tags:
|
|
|
|
- performance
|
|
|
|
- style
|
|
|
|
- experimental
|
|
|
|
disabled-checks:
|
|
|
|
- wrapperFunc
|
|
|
|
- hugeParam
|
|
|
|
- rangeValCopy
|
|
|
|
- singleCaseSwitch
|
|
|
|
- ifElseChain
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
2024-05-09 23:46:41 +02:00
|
|
|
- staticcheck
|
2021-05-26 06:48:22 +02:00
|
|
|
- revive
|
2021-04-09 22:05:22 +02:00
|
|
|
- govet
|
|
|
|
- unconvert
|
2022-09-07 05:24:41 +02:00
|
|
|
- unused
|
2024-05-09 23:46:41 +02:00
|
|
|
- gosec
|
2021-04-09 22:05:22 +02:00
|
|
|
- gocyclo
|
|
|
|
- dupl
|
|
|
|
- misspell
|
|
|
|
- unparam
|
|
|
|
- typecheck
|
|
|
|
- ineffassign
|
|
|
|
- stylecheck
|
|
|
|
- gochecknoinits
|
2021-04-27 01:51:48 +02:00
|
|
|
- exportloopref
|
2021-04-09 22:05:22 +02:00
|
|
|
- gocritic
|
|
|
|
- nakedret
|
|
|
|
- gosimple
|
|
|
|
- prealloc
|
|
|
|
fast: false
|
|
|
|
disable-all: true
|
|
|
|
|
|
|
|
issues:
|
2024-05-09 23:46:41 +02:00
|
|
|
exclude-dirs:
|
|
|
|
- vendor
|
2021-04-09 22:05:22 +02:00
|
|
|
exclude-rules:
|
|
|
|
- text: "at least one file in a package should have a package comment"
|
|
|
|
linters:
|
|
|
|
- stylecheck
|
2022-09-07 05:24:41 +02:00
|
|
|
- text: "should have a package comment"
|
2021-04-09 22:05:22 +02:00
|
|
|
linters:
|
2022-09-07 05:24:41 +02:00
|
|
|
- revive
|
2021-04-09 22:05:22 +02:00
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- gosec
|
|
|
|
- dupl
|
2024-03-15 23:53:10 +02:00
|
|
|
- linters:
|
|
|
|
- unparam
|
|
|
|
- unused
|
|
|
|
- revive
|
|
|
|
path: _test\.go$
|
|
|
|
text: "unused-parameter"
|
2021-04-09 22:05:22 +02:00
|
|
|
exclude-use-default: false
|
|
|
|
|
|
|
|
service:
|
2021-11-09 20:18:26 +02:00
|
|
|
golangci-lint-version: 1.43.x
|