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": [ {