Skip to content

Commit 658f4ad

Browse files
committed
docs: fix errcheck ignore example
1 parent 609de32 commit 658f4ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.golangci.example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ linters-settings:
7373
# [deprecated] comma-separated list of pairs of the form pkg:regex
7474
# the regex is used to ignore names within pkg. (default "fmt:.*").
7575
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
76-
ignore: fmt,io/ioutil:^ReadF.*
76+
ignore: fmt:.*,io/ioutil:^Read.*
7777

7878
# path to a file containing a list of functions to exclude from checking
7979
# see https://github.com/kisielk/errcheck#excluding-functions for details

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ linters-settings:
589589
# [deprecated] comma-separated list of pairs of the form pkg:regex
590590
# the regex is used to ignore names within pkg. (default "fmt:.*").
591591
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
592-
ignore: fmt,io/ioutil:^ReadF.*
592+
ignore: fmt:.*,io/ioutil:^Read.*
593593
594594
# path to a file containing a list of functions to exclude from checking
595595
# see https://github.com/kisielk/errcheck#excluding-functions for details

0 commit comments

Comments
 (0)