Skip to content

Commit

Permalink
Backport of Configure linter to forbid use of html/template into rele…
Browse files Browse the repository at this point in the history
…ase/1.18.x (#21311)

* backport of commit d592c61

* backport of commit 950affb

---------

Co-authored-by: Nathan Coleman <[email protected]>
  • Loading branch information
hc-github-team-consul-core and nathancoleman committed Jun 14, 2024
1 parent ab888c3 commit 405bf5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ linters-settings:
simplify: true
forbidigo:
# Forbid the following identifiers (list of regexp).
# Format includes custom message based on https://github.com/ashanbrown/forbidigo/pull/11
forbid:
- '\bhtml\/template\b(# Use text/template instead)?'
- '\bioutil\b(# Use io and os packages instead of ioutil)?'
- '\brequire\.New\b(# Use package-level functions with explicit TestingT)?'
- '\bassert\.New\b(# Use package-level functions with explicit TestingT)?'
Expand Down

0 comments on commit 405bf5d

Please sign in to comment.