feat: remove deprecated linters from presets (#3405)
This commit is contained in:
parent
49e5bc09b7
commit
67d57f4ed8
@ -895,6 +895,10 @@ func linterConfigsToMap(lcs []*linter.Config) map[string]*linter.Config {
|
|||||||
func (m Manager) GetAllLinterConfigsForPreset(p string) []*linter.Config {
|
func (m Manager) GetAllLinterConfigsForPreset(p string) []*linter.Config {
|
||||||
var ret []*linter.Config
|
var ret []*linter.Config
|
||||||
for _, lc := range m.GetAllSupportedLinterConfigs() {
|
for _, lc := range m.GetAllSupportedLinterConfigs() {
|
||||||
|
if lc.IsDeprecated() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
for _, ip := range lc.InPresets {
|
for _, ip := range lc.InPresets {
|
||||||
if p == ip {
|
if p == ip {
|
||||||
ret = append(ret, lc)
|
ret = append(ret, lc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user