Skip to content

Commit

Permalink
feat: remove deprecated linters from presets (#3405)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Dec 8, 2022
1 parent 49e5bc0 commit 67d57f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/lint/lintersdb/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,10 @@ func linterConfigsToMap(lcs []*linter.Config) map[string]*linter.Config {
func (m Manager) GetAllLinterConfigsForPreset(p string) []*linter.Config {
var ret []*linter.Config
for _, lc := range m.GetAllSupportedLinterConfigs() {
if lc.IsDeprecated() {
continue
}

for _, ip := range lc.InPresets {
if p == ip {
ret = append(ret, lc)
Expand Down

0 comments on commit 67d57f4

Please sign in to comment.