reproxy/.golangci.yml

81 lines
1.3 KiB
YAML
Raw Normal View History

2021-04-09 23:05:22 +03:00
run:
timeout: 5m
output:
format: tab
skip-dirs:
- vendor
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0.1
maligned:
suggest-new: true
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:
- megacheck
- revive
2021-04-09 23:05:22 +03:00
- govet
- unconvert
- megacheck
2022-09-07 06:24:41 +03:00
- unused
2021-04-09 23:05:22 +03:00
- gas
- gocyclo
- dupl
- misspell
- unparam
- typecheck
- ineffassign
- stylecheck
- gochecknoinits
- exportloopref
2021-04-09 23:05:22 +03:00
- gocritic
- nakedret
- gosimple
- prealloc
fast: false
disable-all: true
issues:
exclude-rules:
- text: "at least one file in a package should have a package comment"
linters:
- stylecheck
2022-09-07 06:24:41 +03:00
- text: "should have a package comment"
2021-04-09 23:05:22 +03:00
linters:
2022-09-07 06:24:41 +03:00
- revive
2021-04-09 23:05:22 +03:00
- path: _test\.go
linters:
- gosec
- dupl
- linters:
- unparam
- unused
- revive
path: _test\.go$
text: "unused-parameter"
2021-04-09 23:05:22 +03:00
exclude-use-default: false
service:
golangci-lint-version: 1.43.x