@@ -105,6 +105,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
105
105
var exhaustiveStructCfg * config.ExhaustiveStructSettings
106
106
var errorlintCfg * config.ErrorLintSettings
107
107
var thelperCfg * config.ThelperSettings
108
+ var tenvCfg * config.TenvSettings
108
109
var predeclaredCfg * config.PredeclaredSettings
109
110
var ifshortCfg * config.IfshortSettings
110
111
var reviveCfg * config.ReviveSettings
@@ -126,6 +127,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
126
127
exhaustiveStructCfg = & m .cfg .LintersSettings .ExhaustiveStruct
127
128
errorlintCfg = & m .cfg .LintersSettings .ErrorLint
128
129
thelperCfg = & m .cfg .LintersSettings .Thelper
130
+ tenvCfg = & m .cfg .LintersSettings .Tenv
129
131
predeclaredCfg = & m .cfg .LintersSettings .Predeclared
130
132
ifshortCfg = & m .cfg .LintersSettings .Ifshort
131
133
reviveCfg = & m .cfg .LintersSettings .Revive
@@ -506,6 +508,11 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
506
508
WithLoadForGoAnalysis ().
507
509
WithURL ("https://github.com/Antonboom/errname" ).
508
510
WithSince ("v1.42.0" ),
511
+ linter .NewConfig (golinters .NewTenv (tenvCfg )).
512
+ WithSince ("v1.43.0" ).
513
+ WithPresets (linter .PresetPerformance , linter .PresetStyle ).
514
+ WithLoadForGoAnalysis ().
515
+ WithURL ("https://github.com/sivchari/tenv" ),
509
516
510
517
// nolintlint must be last because it looks at the results of all the previous linters for unused nolint directives
511
518
linter .NewConfig (golinters .NewNoLintLint ()).
0 commit comments