mirror of
https://github.com/umputun/reproxy.git
synced 2024-11-23 09:27:22 +03:00
1c1f9d1c3c
* support reproxy.N.something labels for docker #78 * lint: suppress false positive * update linter in ci * update readme * add test for failed container parse
81 lines
1.4 KiB
YAML
81 lines
1.4 KiB
YAML
run:
|
|
timeout: 5m
|
|
output:
|
|
format: tab
|
|
skip-dirs:
|
|
- vendor
|
|
skip-files:
|
|
- app/proxy/middleware/compress.go
|
|
- app/proxy/middleware/compress_test.go
|
|
|
|
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
|
|
- structcheck
|
|
- gas
|
|
- gocyclo
|
|
- dupl
|
|
- misspell
|
|
- unparam
|
|
- varcheck
|
|
- deadcode
|
|
- typecheck
|
|
- ineffassign
|
|
- varcheck
|
|
- 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, unless it's in another file for this package"
|
|
linters:
|
|
- golint
|
|
- path: _test\.go
|
|
linters:
|
|
- gosec
|
|
- dupl
|
|
exclude-use-default: false
|
|
|
|
service:
|
|
golangci-lint-version: 1.39.x
|