pominal/.golangci.yml

70 lines
955 B
YAML

---
run:
concurrency: 2
timeout: 1m
issues-exit-code: 1
tests: true
output:
format: colored-line-number
print-issues-lines: true
print-linter-name: true
linters-settings:
lll:
line-length: 140
linters:
enable:
- bodyclose
- depguard
- dogsled
- dupl
- errcheck
- exportloopref
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godox
- gofmt
- goimports
- gomnd
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- prealloc
- revive
- rowserrcheck
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
- wsl
#disable:
disabe-all: false
fast: false
issues:
exclude-rules:
- path: main.go
linters:
- gochecknoglobals
- path: _test.go
linters:
- gomnd
- scopelint
- path: cases_test.go
linters:
- gochecknoglobals