Added func to sort linters (#1451)
This commit is contained in:
parent
d20b8f931f
commit
89e94823d6
@ -13,6 +13,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/golangci/golangci-lint/internal/renameio"
|
"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
|
var lines []string
|
||||||
for _, lc := range neededLcs {
|
for _, lc := range neededLcs {
|
||||||
var link string
|
var link string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user