2022-12-17 16:02:17 +02:00
|
|
|
# NOTE(@andreynering): The linters listed here are additions on top of
|
|
|
|
# those enabled by default:
|
|
|
|
#
|
|
|
|
# https://golangci-lint.run/usage/linters/#enabled-by-default
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
2024-11-30 17:00:58 +02:00
|
|
|
- depguard
|
2022-12-17 16:02:17 +02:00
|
|
|
- goimports
|
2023-03-30 22:03:59 +02:00
|
|
|
- gofmt
|
2023-03-31 21:13:29 +02:00
|
|
|
- gofumpt
|
2024-11-15 22:48:59 +02:00
|
|
|
- misspell
|
2022-12-19 03:06:09 +02:00
|
|
|
|
|
|
|
linters-settings:
|
2024-11-30 17:00:58 +02:00
|
|
|
depguard:
|
|
|
|
rules:
|
|
|
|
main:
|
|
|
|
files:
|
|
|
|
- "$all"
|
|
|
|
- "!$test"
|
|
|
|
- "!**/errors/*.go"
|
|
|
|
deny:
|
|
|
|
- pkg: "errors"
|
|
|
|
desc: "Use github.com/go-task/task/v3/errors instead"
|
2022-12-19 03:06:09 +02:00
|
|
|
goimports:
|
2024-04-24 21:47:24 +02:00
|
|
|
local-prefixes: github.com/go-task
|
2023-03-30 22:03:59 +02:00
|
|
|
gofmt:
|
|
|
|
rewrite-rules:
|
|
|
|
- pattern: 'interface{}'
|
|
|
|
replacement: 'any'
|