Skip to content

Commit

Permalink
Added func to sort linters (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatosuero committed Oct 18, 2020
1 parent d20b8f9 commit 89e9482
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/expand_website_templates/main.go
Expand Up @@ -13,6 +13,7 @@ import (
"os"
"os/exec"
"path/filepath"
"sort"
"strings"

"github.com/golangci/golangci-lint/internal/renameio"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 89e9482

Please sign in to comment.