mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
feat: remove deprecated linters from presets (#3405)
This commit is contained in:
parent
49e5bc09b7
commit
67d57f4ed8
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue