Backport of Configure linter to forbid use of html/template into release/1.19.x (#21310)

* backport of commit d592c61e84

* backport of commit 950affbbe4

---------

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
pull/21316/head
hc-github-team-consul-core 2024-06-11 13:36:46 -07:00 committed by GitHub
parent 421e4b5384
commit 0bd228570c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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)?'