Skip to content

Commit 5e6d49b

Browse files
committed
add custom rules example
Signed-off-by: Timon Wong <[email protected]>
1 parent 6a6e65c commit 5e6d49b

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
@@ -1130,7 +1130,8 @@ linters-settings:
11301130
# Require printf-like format specifier (%s, %d for example) not present.
11311131
# Default: false
11321132
no-printf-like: true
1133-
# List of custom rules to check against, where each rule is a single logger pattern.
1133+
# List of custom rules to check against, where each rule is a single logger pattern, useful for wrapped loggers.
1134+
# For example: https://github.com/timonwong/loggercheck/blob/7395ab86595781e33f7afba27ad7b55e6956ebcd/testdata/custom-rules.txt
11341135
# Default: empty
11351136
rules:
11361137
- k8s.io/klog/v2.InfoS # package level exported functions

0 commit comments

Comments
 (0)