Skip to content

Commit 38e2db6

Browse files
committed
docs: fix forbid pattern for built-in functions
1 parent 8c0c515 commit 38e2db6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.golangci.next.reference.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ linters-settings:
538538
# Forbid the following identifiers (list of regexp).
539539
# Default: ["^(fmt\\.Print(|f|ln)|print|println)$"]
540540
forbid:
541-
# Builtin function:
542-
- ^print.*$
541+
# Built-in bootstrapping functions.
542+
- ^print(ln)?$
543543
# Optional message that gets included in error reports.
544544
- p: ^fmt\.Print.*$
545545
msg: Do not commit print statements.

.golangci.reference.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ linters-settings:
535535
# Forbid the following identifiers (list of regexp).
536536
# Default: ["^(fmt\\.Print(|f|ln)|print|println)$"]
537537
forbid:
538-
# Builtin function:
539-
- ^print.*$
538+
# Built-in bootstrapping functions.
539+
- ^print(ln)?$
540540
# Optional message that gets included in error reports.
541541
- p: ^fmt\.Print.*$
542542
msg: Do not commit print statements.

0 commit comments

Comments
 (0)