Skip to content

Commit 499ac3a

Browse files
committed
golangci: sort forbid rules
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 981d4fc commit 499ac3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ linters-settings:
5656
desc: The io/ioutil package has been deprecated.
5757
forbidigo:
5858
forbid:
59-
- '^fmt\.Errorf(# use errors\.Errorf instead)?$'
60-
- '^logrus\.(Trace|Debug|Info|Warn|Warning|Error|Fatal)(f|ln)?(# use bklog\.G or bklog\.L instead of logrus directly)?$'
6159
- '^context\.WithCancel(# use context\.WithCancelCause instead)?$'
62-
- '^context\.WithTimeout(# use context\.WithTimeoutCause instead)?$'
6360
- '^context\.WithDeadline(# use context\.WithDeadline instead)?$'
61+
- '^context\.WithTimeout(# use context\.WithTimeoutCause instead)?$'
6462
- '^ctx\.Err(# use context\.Cause instead)?$'
63+
- '^fmt\.Errorf(# use errors\.Errorf instead)?$'
64+
- '^logrus\.(Trace|Debug|Info|Warn|Warning|Error|Fatal)(f|ln)?(# use bklog\.G or bklog\.L instead of logrus directly)?$'
6565
importas:
6666
alias:
6767
# Enforce alias to prevent it accidentally being used instead of our

0 commit comments

Comments
 (0)