Skip to content

Commit

Permalink
docs: add forbidigo example that uses comments (golangci#2599)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfurman authored and SeigeC committed Apr 4, 2023
1 parent 21cf52c commit a02e5df
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 a02e5df

Please sign in to comment.