Added func to sort linters (#1451)
This commit is contained in:
parent
d20b8f931f
commit
89e94823d6
@ -13,6 +13,7 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/golangci/golangci-lint/internal/renameio"
|
||||
@ -220,6 +221,9 @@ func getLintersListMarkdown(enabled bool) string {
|
||||
}
|
||||
}
|
||||
|
||||
sort.Slice(neededLcs, func(i, j int) bool {
|
||||
return neededLcs[i].Name() < neededLcs[j].Name()
|
||||
})
|
||||
var lines []string
|
||||
for _, lc := range neededLcs {
|
||||
var link string
|
||||
|
Loading…
x
Reference in New Issue
Block a user