Skip to content

Commit 67d57f4

Browse files
authored
feat: remove deprecated linters from presets (#3405)
1 parent 49e5bc0 commit 67d57f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/lint/lintersdb/manager.go

+4
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,10 @@ func linterConfigsToMap(lcs []*linter.Config) map[string]*linter.Config {
895895
func (m Manager) GetAllLinterConfigsForPreset(p string) []*linter.Config {
896896
var ret []*linter.Config
897897
for _, lc := range m.GetAllSupportedLinterConfigs() {
898+
if lc.IsDeprecated() {
899+
continue
900+
}
901+
898902
for _, ip := range lc.InPresets {
899903
if p == ip {
900904
ret = append(ret, lc)

0 commit comments

Comments
 (0)