Skip to content

Commit a016aa8

Browse files
committed
Add forbidigo example that uses comments
1 parent 5ddb5e7 commit a016aa8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.golangci.example.yml

+3
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ linters-settings:
280280
forbid:
281281
- ^print.*$
282282
- 'fmt\.Print.*'
283+
# Optionally put comments at the end of the regex, surrounded by `(# )?`
284+
# Escape any special characters.
285+
- 'fmt\.Print.*(# Put comments here\.)?'
283286
# Exclude godoc examples from forbidigo checks.
284287
# Default: true
285288
exclude_godoc_examples: false

0 commit comments

Comments
 (0)