2022-12-17 11:02:17 -03: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 11:02:17 -03:00
|
|
|
- goimports
|
2023-03-30 20:03:59 +00:00
|
|
|
- gofmt
|
2023-03-31 19:13:29 +00:00
|
|
|
- gofumpt
|
2024-11-15 21:48:59 +01:00
|
|
|
- misspell
|
2024-12-12 01:42:04 +01:00
|
|
|
- noctx
|
2024-12-12 01:47:10 +01:00
|
|
|
- paralleltest
|
|
|
|
- tenv
|
|
|
|
- thelper
|
|
|
|
- tparallel
|
2022-12-19 01:06:09 +00: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 01:06:09 +00:00
|
|
|
goimports:
|
2024-04-24 20:47:24 +01:00
|
|
|
local-prefixes: github.com/go-task
|
2023-03-30 20:03:59 +00:00
|
|
|
gofmt:
|
|
|
|
rewrite-rules:
|
|
|
|
- pattern: 'interface{}'
|
|
|
|
replacement: 'any'
|