Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
  • Loading branch information
timonwong committed Aug 29, 2022
1 parent f2114e1 commit 0c0ba6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions loggercheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func TestLinter(t *testing.T) {
func TestOptions(t *testing.T) {
testdata := analysistest.TestData()

rules := []string{
customRules := []string{
"(*a/customonly.Logger).Debugw",
"(*a/customonly.Logger).Infow",
"(*a/customonly.Logger).Warnw",
Expand All @@ -105,14 +105,14 @@ func TestOptions(t *testing.T) {
name: "disable-all-then-enable-mylogger",
options: []loggercheck.Option{
loggercheck.WithDisable([]string{"klog", "logr", "zap"}),
loggercheck.WithRules(rules),
loggercheck.WithRules(customRules),
},
},
{
name: "ignore-logr",
options: []loggercheck.Option{
loggercheck.WithDisable([]string{"logr"}),
loggercheck.WithRules(rules),
loggercheck.WithRules(customRules),
},
},
}
Expand Down

0 comments on commit 0c0ba6d

Please sign in to comment.