mirror of https://github.com/status-im/consul.git
Configure linter to forbid use of html/template (#21307)
* Configure linter to forbid use of html/template We should never use html/template due to the performance penalty and the fact that we are highly unlikely to ever be generating HTML templates. * Link to PR explaining the format of forbidigo.forbid
This commit is contained in:
parent
963cee200b
commit
14e409ef54
|
@ -75,7 +75,9 @@ linters-settings:
|
||||||
simplify: true
|
simplify: true
|
||||||
forbidigo:
|
forbidigo:
|
||||||
# Forbid the following identifiers (list of regexp).
|
# Forbid the following identifiers (list of regexp).
|
||||||
|
# Format includes custom message based on https://github.com/ashanbrown/forbidigo/pull/11
|
||||||
forbid:
|
forbid:
|
||||||
|
- '\bhtml\/template\b(# Use text/template instead)?'
|
||||||
- '\bioutil\b(# Use io and os packages instead of ioutil)?'
|
- '\bioutil\b(# Use io and os packages instead of ioutil)?'
|
||||||
- '\brequire\.New\b(# Use package-level functions with explicit TestingT)?'
|
- '\brequire\.New\b(# Use package-level functions with explicit TestingT)?'
|
||||||
- '\bassert\.New\b(# Use package-level functions with explicit TestingT)?'
|
- '\bassert\.New\b(# Use package-level functions with explicit TestingT)?'
|
||||||
|
|
Loading…
Reference in New Issue