Skip to content

Commit

Permalink
Add forbidigo example that uses comments
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfurman committed Feb 19, 2022
1 parent 5ddb5e7 commit 92e8582
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
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 92e8582

Please sign in to comment.