Skip to content

Commit

Permalink
ci: add golangci depguard rule for the errors package
Browse files Browse the repository at this point in the history
  • Loading branch information
jeronimoalbi committed Nov 9, 2023
1 parent ddc0bc1 commit 0a5048d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ linters:
enable:
- bodyclose
- decorder
# - depguard
- depguard
- dogsled
- dupword
# - errcheck
Expand Down Expand Up @@ -45,6 +45,16 @@ linters:
# - wrapcheck
# - wsl

linters-settings:
depguard:
rules:
main:
deny:
- pkg: "errors"
desc: Should be replaced by 'errors "github.com/ignite/cli/ignite/pkg/xerrors"'
- pkg: "github.com/pkg/errors"
desc: Should be replaced by 'errors "github.com/ignite/cli/ignite/pkg/xerrors"'

issues:
max-issues-per-linter: 0
max-same-issues: 0

0 comments on commit 0a5048d

Please sign in to comment.