Skip to content

Commit 5f9277d

Browse files
authored
dev: remove alternatives names from CLI help (#4641)
1 parent 9522292 commit 5f9277d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

pkg/commands/help.go

+2-7
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ func printLinters(lcs []*linter.Config) {
111111
})
112112

113113
for _, lc := range lcs {
114-
altNamesStr := ""
115-
if len(lc.AlternativeNames) != 0 {
116-
altNamesStr = fmt.Sprintf(" (%s)", strings.Join(lc.AlternativeNames, ", "))
117-
}
118-
119114
// If the linter description spans multiple lines, truncate everything following the first newline
120115
linterDescription := lc.Linter.Desc()
121116
firstNewline := strings.IndexRune(linterDescription, '\n')
@@ -128,7 +123,7 @@ func printLinters(lcs []*linter.Config) {
128123
deprecatedMark = " [" + color.RedString("deprecated") + "]"
129124
}
130125

131-
_, _ = fmt.Fprintf(logutils.StdOut, "%s%s%s: %s [fast: %t, auto-fix: %t]\n",
132-
color.YellowString(lc.Name()), altNamesStr, deprecatedMark, linterDescription, !lc.IsSlowLinter(), lc.CanAutoFix)
126+
_, _ = fmt.Fprintf(logutils.StdOut, "%s%s: %s [fast: %t, auto-fix: %t]\n",
127+
color.YellowString(lc.Name()), deprecatedMark, linterDescription, !lc.IsSlowLinter(), lc.CanAutoFix)
133128
}
134129
}

0 commit comments

Comments
 (0)