mirror of https://github.com/hashicorp/consul
Backport of Configure linter to forbid use of html/template into release/1.19.x (#21310)
* backport of commitpull/21316/headd592c61e84
* backport of commit950affbbe4
--------- Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
parent
421e4b5384
commit
0bd228570c
|
@ -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)?'
|
||||
|
|
Loading…
Reference in New Issue