1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00
Files
task/.golangci.yml

65 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2025-03-26 22:55:38 +00:00
version: "2"
2022-12-17 11:02:17 -03:00
2025-03-26 22:55:38 +00:00
formatters:
2022-12-17 11:02:17 -03:00
enable:
- gofmt
2023-03-31 19:13:29 +00:00
- gofumpt
2025-03-26 22:55:38 +00:00
- goimports
- gci
2025-03-26 22:55:38 +00:00
settings:
gofmt:
simplify: true
2025-03-26 22:55:38 +00:00
rewrite-rules:
- pattern: interface{}
replacement: any
gofumpt:
module-path: github.com/go-task/task/v3
goimports:
local-prefixes:
- github.com/go-task
gci:
sections:
- standard
- default
- prefix(github.com/go-task)
- localmodule
2025-03-26 22:55:38 +00:00
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
linters:
enable:
- depguard
2025-02-24 14:06:54 +02:00
- mirror
2024-11-15 21:48:59 +01:00
- misspell
2024-12-12 01:42:04 +01:00
- noctx
- paralleltest
- thelper
- tparallel
2025-03-26 22:55:38 +00:00
- usetesting
settings:
depguard:
rules:
main:
files:
- $all
- '!$test'
- '!**/errors/*.go'
deny:
- pkg: errors
desc: Use github.com/go-task/task/v3/errors instead
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$