diff --git a/.golangci.example.yml b/.golangci.example.yml index 2b3a3851c426..99b4e37453c3 100644 --- a/.golangci.example.yml +++ b/.golangci.example.yml @@ -280,6 +280,9 @@ linters-settings: forbid: - ^print.*$ - 'fmt\.Print.*' + # Optionally put comments at the end of the regex, surrounded by `(# )?` + # Escape any special characters. + - 'fmt\.Print.*(# Do not commit print statements\.)?' # Exclude godoc examples from forbidigo checks. # Default: true exclude_godoc_examples: false