1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00
reproxy/.golangci.yml

75 lines
1.2 KiB
YAML
Raw Normal View History

2021-04-09 22:05:22 +02:00
run:
timeout: 5m
linters-settings:
govet:
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:
- staticcheck
- revive
2021-04-09 22:05:22 +02:00
- govet
- unconvert
2022-09-07 05:24:41 +02:00
- unused
- gosec
2021-04-09 22:05:22 +02:00
- gocyclo
- dupl
- misspell
- unparam
- typecheck
- ineffassign
- stylecheck
- gochecknoinits
- exportloopref
2021-04-09 22:05:22 +02:00
- gocritic
- nakedret
- gosimple
- prealloc
fast: false
disable-all: true
issues:
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
- linters:
- unparam
- unused
- revive
path: _test\.go$
text: "unused-parameter"
2021-04-09 22:05:22 +02:00
exclude-use-default: false
service:
golangci-lint-version: 1.43.x