Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- cmd/server/main.go: acknowledge w.Write return value (errcheck) - internal/store/mongo.go: use errors.Is for ErrNoDocuments (errorlint) - .golangci.yml: add linter config scoped to relevant linters - .gitignore: scope /server to root only (was blocking cmd/server/ directory) Co-Authored-By: Paperclip <noreply@paperclip.ing>
26 lines
407 B
YAML
26 lines
407 B
YAML
linters:
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- staticcheck
|
|
- gosimple
|
|
- ineffassign
|
|
- unused
|
|
- errorlint
|
|
- gocritic
|
|
- revive
|
|
|
|
linters-settings:
|
|
revive:
|
|
rules:
|
|
- name: exported
|
|
disabled: true
|
|
|
|
issues:
|
|
exclude-rules:
|
|
# Test files can use dot-imports and assertion helpers freely
|
|
- path: _test\.go
|
|
linters:
|
|
- errcheck
|
|
- gocritic
|