mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 14:31:49 +00:00
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
version: "2"
|
|
|
|
run:
|
|
timeout: 1m
|
|
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
- goimports
|
|
|
|
linters:
|
|
default: all
|
|
|
|
disable:
|
|
- depguard # We don't have any packages we need to block
|
|
- exhaustruct # Too pedantic and impractical. Explicitly setting all struct values goes against Go's zero-value philosophy
|
|
- gochecknoglobals # It's too strict and doesn't distinguish between "bad" globals (mutable shared state) and "good" globals (immutable configuration)
|
|
- paralleltest # Tests are fast already and paralellizing them adds complexity
|
|
- wsl # We use wsl_v5 instead
|
|
- wrapcheck # Adds too much bloat, many of the errors are contextual enough and don't need wrapping
|
|
|
|
exclusions:
|
|
# Typical presets to exclude: https://golangci-lint.run/docs/linters/false-positives/#exclusion-presets
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
|
|
rules:
|
|
- path: _test.go
|
|
linters:
|
|
- dupl # We don't mind duplicated code in tests. It helps with clarity
|
|
- varnamelen # We don't mind short var names in tests.
|
|
- revive # Complains too much about unused-params, but they help with tests readibility
|
|
- path: test/
|
|
linters:
|
|
- dupl
|
|
- varnamelen
|
|
|