woodpecker/vendor/github.com/tetafro/godot/.golangci.yml
Lukas c28f7cb29f
Add golangci-lint (#502)
Initial part of #435
2021-11-14 21:01:54 +01:00

67 lines
981 B
YAML

run:
concurrency: 2
deadline: 5m
skip-dirs:
- path: ./testdata/
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- bodyclose
- depguard
- dogsled
- dupl
- funlen
- gochecknoinits
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- gofumpt
- goimports
- golint
- gomnd
- gomodguard
- goprintffuncname
- gosec
- lll
- maligned
- misspell
- nakedret
- nestif
- prealloc
- rowserrcheck
- scopelint
- stylecheck
- unconvert
- unparam
- whitespace
linters-settings:
godot:
check-all: true
issues:
exclude-use-default: false
exclude-rules:
- path: _test\.go
linters:
- dupl
- errcheck
- funlen
- gosec
- path: cmd/godot/main\.go
linters:
- gomnd