Skip to content

Commit 845fb3e

Browse files
ldezSeigeC
authored andcommitted
feat: remove deprecated linters from presets (golangci#3405)
1 parent 698956d commit 845fb3e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/lint/lintersdb/manager.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,10 @@ func linterConfigsToMap(lcs []*linter.Config) map[string]*linter.Config {
898898
func (m Manager) GetAllLinterConfigsForPreset(p string) []*linter.Config {
899899
var ret []*linter.Config
900900
for _, lc := range m.GetAllSupportedLinterConfigs() {
901+
if lc.IsDeprecated() {
902+
continue
903+
}
904+
901905
for _, ip := range lc.InPresets {
902906
if p == ip {
903907
ret = append(ret, lc)

0 commit comments

Comments
 (0)