mirror of
https://github.com/umputun/reproxy.git
synced 2024-11-24 08:12:31 +02:00
d2a4f56833
* Add 'X-Forwarded-URL' to request header 'X-Forwarded-URL' has been added to the request header in the proxy core to improve redirection handling. * lint: address unused param warn, supress for tests
81 lines
1.3 KiB
YAML
81 lines
1.3 KiB
YAML
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
|
|
- govet
|
|
- unconvert
|
|
- megacheck
|
|
- unused
|
|
- gas
|
|
- gocyclo
|
|
- dupl
|
|
- misspell
|
|
- unparam
|
|
- typecheck
|
|
- ineffassign
|
|
- stylecheck
|
|
- gochecknoinits
|
|
- exportloopref
|
|
- 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
|
|
- text: "should have a package comment"
|
|
linters:
|
|
- revive
|
|
- path: _test\.go
|
|
linters:
|
|
- gosec
|
|
- dupl
|
|
- linters:
|
|
- unparam
|
|
- unused
|
|
- revive
|
|
path: _test\.go$
|
|
text: "unused-parameter"
|
|
exclude-use-default: false
|
|
|
|
service:
|
|
golangci-lint-version: 1.43.x
|