We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59f05b5 commit 3ebb1ceCopy full SHA for 3ebb1ce
pkg/commands/help.go
@@ -8,6 +8,8 @@ import (
8
9
"github.com/fatih/color"
10
"github.com/spf13/cobra"
11
+ "golang.org/x/text/cases"
12
+ "golang.org/x/text/language"
13
14
"github.com/golangci/golangci-lint/pkg/config"
15
"github.com/golangci/golangci-lint/pkg/lint/linter"
@@ -131,6 +133,11 @@ func printLinters(lcs []*linter.Config) {
131
133
linterDescription = linterDescription[:firstNewline]
132
134
}
135
136
+ // Capitalize the first word of the linter description
137
+ if firstWord, remaining, ok := strings.Cut(linterDescription, " "); ok {
138
+ linterDescription = cases.Title(language.Und, cases.NoLower).String(firstWord) + " " + remaining
139
+ }
140
+
141
deprecatedMark := ""
142
if lc.IsDeprecated() {
143
deprecatedMark = " [" + color.RedString("deprecated") + "]"
0 commit comments