Skip to content

Commit

Permalink
docs: add forbidigo example that uses comments (#2599)
Browse files Browse the repository at this point in the history
craigfurman authored Feb 19, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0831dac commit 374b3fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .golangci.example.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 374b3fd

Please sign in to comment.