Skip to content

Commit

Permalink
Fix readme comment example (#12)
Browse files Browse the repository at this point in the history
Regex special characters like `.` are considered captured groups so don't render normally
  • Loading branch information
craigfurman authored Feb 19, 2022
1 parent 9d87656 commit 7e48566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A larger set of interesting patterns might include:
* `^fmt\.Errorf$` -- forbid Errorf in favor of using github.com/pkg/errors
* `^ginkgo\.F[A-Z].*$` -- forbid ginkgo focused commands (used for debug issues)
* `^spew\.Dump$` -- forbid dumping detailed data to stdout
* `^fmt\.Errorf(# please use github.com/pkg/errors)?$` -- forbid Errorf, with a custom message
* `^fmt\.Errorf(# please use github\.com/pkg/errors)?$` -- forbid Errorf, with a custom message

Note that the linter has no knowledge of what packages were actually imported, so aliased imports will match these patterns.

Expand Down

0 comments on commit 7e48566

Please sign in to comment.