Skip to content

Commit 89e9482

Browse files
authored
Added func to sort linters (#1451)
1 parent d20b8f9 commit 89e9482

File tree

1 file changed

+4
-0
lines changed
  • scripts/expand_website_templates

1 file changed

+4
-0
lines changed

scripts/expand_website_templates/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"os"
1414
"os/exec"
1515
"path/filepath"
16+
"sort"
1617
"strings"
1718

1819
"github.com/golangci/golangci-lint/internal/renameio"
@@ -220,6 +221,9 @@ func getLintersListMarkdown(enabled bool) string {
220221
}
221222
}
222223

224+
sort.Slice(neededLcs, func(i, j int) bool {
225+
return neededLcs[i].Name() < neededLcs[j].Name()
226+
})
223227
var lines []string
224228
for _, lc := range neededLcs {
225229
var link string

0 commit comments

Comments
 (0)