1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00
task/.golangci.yml

31 lines
638 B
YAML
Raw Normal View History

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:
- depguard
2022-12-17 16:02:17 +02:00
- goimports
- gofmt
2023-03-31 21:13:29 +02:00
- gofumpt
2024-11-15 22:48:59 +02:00
- misspell
linters-settings:
depguard:
rules:
main:
files:
- "$all"
- "!$test"
- "!**/errors/*.go"
deny:
- pkg: "errors"
desc: "Use github.com/go-task/task/v3/errors instead"
goimports:
local-prefixes: github.com/go-task
gofmt:
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'