Skip to content

Commit

Permalink
lint: ban direct use of logrus
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chadwell <me@jedevc.com>
  • Loading branch information
jedevc committed Mar 15, 2023
1 parent 2a0dd4b commit 6377bbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ linters-settings:
forbidigo:
forbid:
- '^fmt\.Errorf(# use errors\.Errorf instead)?$'
- '^logrus\.(Debug|Info|Warn|Error)f?(# use bklog\.G\(ctx\) instead of logrus directly)?$'
importas:
alias:
- pkg: "github.com/opencontainers/image-spec/specs-go/v1"
Expand Down

0 comments on commit 6377bbb

Please sign in to comment.