2020-05-02 10:27:28 +02:00
|
|
|
linters-settings:
|
|
|
|
dupl:
|
|
|
|
threshold: 100
|
|
|
|
funlen:
|
|
|
|
lines: 100
|
|
|
|
statements: 50
|
|
|
|
goconst:
|
2020-05-02 16:17:20 +02:00
|
|
|
min-len: 3
|
|
|
|
min-occurrences: 4
|
2020-05-02 10:27:28 +02:00
|
|
|
gocritic:
|
|
|
|
enabled-tags:
|
|
|
|
- diagnostic
|
|
|
|
- experimental
|
|
|
|
- opinionated
|
|
|
|
- performance
|
|
|
|
- style
|
|
|
|
disabled-checks:
|
|
|
|
- dupImport # https://github.com/go-critic/go-critic/issues/845
|
|
|
|
- ifElseChain
|
|
|
|
- octalLiteral
|
|
|
|
- whyNoLint
|
|
|
|
- wrapperFunc
|
|
|
|
gocyclo:
|
|
|
|
min-complexity: 15
|
|
|
|
goimports:
|
2020-06-13 19:29:50 +02:00
|
|
|
local-prefixes: github.com/Jguer/yay/v10
|
2020-05-02 10:27:28 +02:00
|
|
|
golint:
|
|
|
|
min-confidence: 0
|
|
|
|
gomnd:
|
|
|
|
settings:
|
|
|
|
mnd:
|
|
|
|
# don't include the "operation" and "assign"
|
|
|
|
checks: argument,case,condition,return
|
|
|
|
govet:
|
|
|
|
check-shadowing: true
|
|
|
|
lll:
|
|
|
|
line-length: 140
|
|
|
|
maligned:
|
|
|
|
suggest-new: true
|
|
|
|
misspell:
|
|
|
|
locale: US
|
|
|
|
|
|
|
|
linters:
|
|
|
|
# please, do not use `enable-all`: it's deprecated and will be removed soon.
|
|
|
|
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- bodyclose
|
|
|
|
- deadcode
|
|
|
|
- depguard
|
|
|
|
- dupl
|
|
|
|
- errcheck
|
|
|
|
- gochecknoinits
|
|
|
|
- gocritic
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- golint
|
|
|
|
- goprintffuncname
|
|
|
|
- gosec
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- interfacer
|
|
|
|
- lll
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
|
|
|
- rowserrcheck
|
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- stylecheck
|
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- unused
|
|
|
|
- varcheck
|
|
|
|
- whitespace
|
|
|
|
- prealloc
|
2020-05-02 16:17:20 +02:00
|
|
|
- maligned
|
|
|
|
|
|
|
|
# disabled want to fix
|
|
|
|
#- scopelint
|
|
|
|
#- gomnd
|
|
|
|
#- goconst
|
|
|
|
#- gocyclo
|
|
|
|
#- funlen
|
|
|
|
#- dogsled
|
|
|
|
# disabled for now
|
|
|
|
# - godox
|
2020-05-02 10:27:28 +02:00
|
|
|
|
|
|
|
issues:
|
|
|
|
# Excluding configuration per-path, per-linter, per-text and per-source
|
|
|
|
exclude-rules:
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- gomnd
|
|
|
|
|
2020-05-02 16:17:20 +02:00
|
|
|
exclude:
|
2020-12-15 01:29:05 +01:00
|
|
|
- G107
|
2020-05-02 16:17:20 +02:00
|
|
|
- G204
|
|
|
|
- commentedOutCode
|
|
|
|
|
2020-05-02 10:27:28 +02:00
|
|
|
run:
|
2020-05-02 16:17:20 +02:00
|
|
|
tests: false
|