Skip to content

docs: improve forbidigo pattern examples for built-in functions #5116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ linters-settings:
# Forbid the following identifiers (list of regexp).
# Default: ["^(fmt\\.Print(|f|ln)|print|println)$"]
forbid:
# Builtin function:
- ^print.*$
# Built-in bootstrapping functions.
- ^print(ln)?$
# Optional message that gets included in error reports.
- p: ^fmt\.Print.*$
msg: Do not commit print statements.
Expand Down
4 changes: 2 additions & 2 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ linters-settings:
# Forbid the following identifiers (list of regexp).
# Default: ["^(fmt\\.Print(|f|ln)|print|println)$"]
forbid:
# Builtin function:
- ^print.*$
# Built-in bootstrapping functions.
- ^print(ln)?$
# Optional message that gets included in error reports.
- p: ^fmt\.Print.*$
msg: Do not commit print statements.
Expand Down
2 changes: 1 addition & 1 deletion jsonschema/golangci.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@
"forbid": {
"description": "List of identifiers to forbid (written using `regexp`)",
"type": "array",
"examples": ["^print.*$"],
"examples": ["^print(ln)?$"],
"items": {
"anyOf": [
{
Expand Down
2 changes: 1 addition & 1 deletion jsonschema/golangci.next.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@
"forbid": {
"description": "List of identifiers to forbid (written using `regexp`)",
"type": "array",
"examples": ["^print.*$"],
"examples": ["^print(ln)?$"],
"items": {
"anyOf": [
{
Expand Down
Loading