docs: add forbidigo example that uses comments (#2599)

This commit is contained in:
Craig Furman 2022-02-19 12:07:10 +00:00 committed by GitHub
parent 0831dacc29
commit 374b3fd206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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