Skip to content

Commit

Permalink
docs: add forbidigo example that uses comments (#2599)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfurman committed Feb 19, 2022
1 parent 0831dac commit 374b3fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .golangci.example.yml
Expand Up @@ -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
Expand Down

0 comments on commit 374b3fd

Please sign in to comment.