From 0a58713723240ed73d71f178e2f453607b88a70a Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 8 Nov 2024 14:16:00 +0200 Subject: [PATCH] docs: fix forbid pattern for built-in functions --- .golangci.next.reference.yml | 4 ++-- .golangci.reference.yml | 4 ++-- jsonschema/golangci.jsonschema.json | 2 +- jsonschema/golangci.next.jsonschema.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.golangci.next.reference.yml b/.golangci.next.reference.yml index afc4caa38e4d..44d371c498c9 100644 --- a/.golangci.next.reference.yml +++ b/.golangci.next.reference.yml @@ -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. diff --git a/.golangci.reference.yml b/.golangci.reference.yml index e135b3e4f912..8418f3d70e81 100644 --- a/.golangci.reference.yml +++ b/.golangci.reference.yml @@ -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. diff --git a/jsonschema/golangci.jsonschema.json b/jsonschema/golangci.jsonschema.json index 3e3e5ffb66ac..88c6eec6ef0b 100644 --- a/jsonschema/golangci.jsonschema.json +++ b/jsonschema/golangci.jsonschema.json @@ -1018,7 +1018,7 @@ "forbid": { "description": "List of identifiers to forbid (written using `regexp`)", "type": "array", - "examples": ["^print.*$"], + "examples": ["^print(ln)?$"], "items": { "anyOf": [ { diff --git a/jsonschema/golangci.next.jsonschema.json b/jsonschema/golangci.next.jsonschema.json index ef6372d459fb..5ccb898a57a7 100644 --- a/jsonschema/golangci.next.jsonschema.json +++ b/jsonschema/golangci.next.jsonschema.json @@ -1020,7 +1020,7 @@ "forbid": { "description": "List of identifiers to forbid (written using `regexp`)", "type": "array", - "examples": ["^print.*$"], + "examples": ["^print(ln)?$"], "items": { "anyOf": [ {