Skip to content

Commit 06dddc3

Browse files
Patrick Zhangtpounds
Patrick Zhang
authored andcommitted
Fix depguard config in yml
1 parent f3e349f commit 06dddc3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.golangci.example.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ linters-settings:
138138
include-go-root: false
139139
packages:
140140
- github.com/sirupsen/logrus
141-
packages-with-error-messages:
141+
packages-with-error-message:
142142
# specify an error message to output when a blacklisted package is used
143-
github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
143+
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
144144
misspell:
145145
# Correct spellings using locale preferences for US or UK.
146146
# Default is to use a neutral variety of English.

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ linters-settings:
2525
# logging is allowed only by logutils.Log, logrus
2626
# is allowed to use only in logutils package
2727
- github.com/sirupsen/logrus
28-
packages-with-error-messages:
29-
github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
28+
packages-with-error-message:
29+
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
3030
misspell:
3131
locale: US
3232
lll:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,9 +741,9 @@ linters-settings:
741741
include-go-root: false
742742
packages:
743743
- github.com/sirupsen/logrus
744-
packages-with-error-messages:
744+
packages-with-error-message:
745745
# specify an error message to output when a blacklisted package is used
746-
github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
746+
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
747747
misspell:
748748
# Correct spellings using locale preferences for US or UK.
749749
# Default is to use a neutral variety of English.
@@ -940,8 +940,8 @@ linters-settings:
940940
# logging is allowed only by logutils.Log, logrus
941941
# is allowed to use only in logutils package
942942
- github.com/sirupsen/logrus
943-
packages-with-error-messages:
944-
github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
943+
packages-with-error-message:
944+
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
945945
misspell:
946946
locale: US
947947
lll:

0 commit comments

Comments
 (0)