@@ -102,6 +102,7 @@ func enableLinterConfigs(lcs []*linter.Config, isEnabled func(lc *linter.Config)
102
102
func (m Manager ) GetAllSupportedLinterConfigs () []* linter.Config {
103
103
var bidichkCfg * config.BiDiChkSettings
104
104
var cyclopCfg * config.Cyclop
105
+ var errchkjsonCfg * config.ErrChkJSONSettings
105
106
var errorlintCfg * config.ErrorLintSettings
106
107
var exhaustiveCfg * config.ExhaustiveSettings
107
108
var exhaustiveStructCfg * config.ExhaustiveStructSettings
@@ -129,6 +130,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
129
130
if m .cfg != nil {
130
131
bidichkCfg = & m .cfg .LintersSettings .BiDiChk
131
132
cyclopCfg = & m .cfg .LintersSettings .Cyclop
133
+ errchkjsonCfg = & m .cfg .LintersSettings .ErrChkJSON
132
134
errorlintCfg = & m .cfg .LintersSettings .ErrorLint
133
135
exhaustiveCfg = & m .cfg .LintersSettings .Exhaustive
134
136
exhaustiveStructCfg = & m .cfg .LintersSettings .ExhaustiveStruct
@@ -548,6 +550,11 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
548
550
WithSince ("1.43.0" ).
549
551
WithPresets (linter .PresetBugs ).
550
552
WithURL ("https://github.com/breml/bidichk" ),
553
+ linter .NewConfig (golinters .NewErrChkJSONFuncName (errchkjsonCfg )).
554
+ WithSince ("1.44.0" ).
555
+ WithPresets (linter .PresetBugs ).
556
+ WithLoadForGoAnalysis ().
557
+ WithURL ("https://github.com/breml/errchkjson" ),
551
558
552
559
// nolintlint must be last because it looks at the results of all the previous linters for unused nolint directives
553
560
linter .NewConfig (golinters .NewNoLintLint ()).
0 commit comments