Skip to content

Commit 82e647e

Browse files
timonwongldez
authored andcommitted
add custom rules example
Signed-off-by: Timon Wong <[email protected]>
1 parent e9c8fe4 commit 82e647e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.golangci.reference.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,8 @@ linters-settings:
11381138
# Require printf-like format specifier (%s, %d for example) not present.
11391139
# Default: false
11401140
no-printf-like: true
1141-
# List of custom rules to check against, where each rule is a single logger pattern.
1141+
# List of custom rules to check against, where each rule is a single logger pattern, useful for wrapped loggers.
1142+
# For example: https://github.com/timonwong/loggercheck/blob/7395ab86595781e33f7afba27ad7b55e6956ebcd/testdata/custom-rules.txt
11421143
# Default: empty
11431144
rules:
11441145
- k8s.io/klog/v2.InfoS # package level exported functions

0 commit comments

Comments
 (0)