Skip to content

Commit cfe732e

Browse files
AntonboomSeigeC
authored andcommitted
docs: remove unused from config.LintersSettings (golangci#3704)
1 parent e4ccbd2 commit cfe732e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/config/linters_settings.go

-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ type LintersSettings struct {
201201
Testpackage TestpackageSettings
202202
Thelper ThelperSettings
203203
Unparam UnparamSettings
204-
Unused StaticCheckSettings
205204
UseStdlibVars UseStdlibVarsSettings
206205
Varcheck VarCheckSettings
207206
Varnamelen VarnamelenSettings

pkg/lint/lintersdb/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
247247
testpackageCfg = &m.cfg.LintersSettings.Testpackage
248248
thelperCfg = &m.cfg.LintersSettings.Thelper
249249
unparamCfg = &m.cfg.LintersSettings.Unparam
250-
unusedCfg = &m.cfg.LintersSettings.Unused
250+
unusedCfg = new(config.StaticCheckSettings)
251251
varcheckCfg = &m.cfg.LintersSettings.Varcheck
252252
varnamelenCfg = &m.cfg.LintersSettings.Varnamelen
253253
whitespaceCfg = &m.cfg.LintersSettings.Whitespace

0 commit comments

Comments
 (0)