Skip to content

Commit 0620021

Browse files
committed
review
1 parent 286471f commit 0620021

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.golangci.example.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -448,23 +448,25 @@ linters-settings:
448448
alias: $1$2
449449

450450
ireturn:
451-
# ireturn allows using either `allow` or `reject` settings at the same time.
452-
# both settings are lists of the keywords (`empty` for interface{}`,
453-
# `error` for errors, `stdlib` for standard library, `anon` for anonymous
454-
# interfaces ) and regular expressions matched to interfaces or packages.
455-
451+
# ireturn allows using `allow` and `reject` settings at the same time.
452+
# Both settings are lists of the keywords and regular expressions matched to interface or package names.
453+
# keywords:
454+
# - `empty` for `interface{}`
455+
# - `error` for errors
456+
# - `stdlib` for standard library
457+
# - `anon` for anonymous interfaces
458+
459+
# By default, it allows using errors, empty interfaces, anonymous interfaces,
460+
# and interfaces provided by the standard library.
456461
allow:
457-
# default settings are allowed to use errors, empty interfaces, anonymous
458-
# interfaces, and interfaces provided by the standard library.
459462
- anon
460463
- error
461464
- empty
462465
- stdlib
463466
# You can specify idiomatic endings for interface
464467
- (or|er)$
465468

466-
467-
# or you can specify reject patterns
469+
# Reject patterns
468470
reject:
469471
- github.com\/user\/package\/v4\.Type
470472

0 commit comments

Comments
 (0)