From 4ad62d2f661609206d2cb088a15a7b7140e4f3f1 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 13 Apr 2024 17:09:38 +0200 Subject: [PATCH] feat: remove alternatives names from CLI help --- pkg/commands/help.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkg/commands/help.go b/pkg/commands/help.go index 42da4a3dc9f6..cb398fe560ab 100644 --- a/pkg/commands/help.go +++ b/pkg/commands/help.go @@ -111,11 +111,6 @@ func printLinters(lcs []*linter.Config) { }) for _, lc := range lcs { - altNamesStr := "" - if len(lc.AlternativeNames) != 0 { - altNamesStr = fmt.Sprintf(" (%s)", strings.Join(lc.AlternativeNames, ", ")) - } - // If the linter description spans multiple lines, truncate everything following the first newline linterDescription := lc.Linter.Desc() firstNewline := strings.IndexRune(linterDescription, '\n') @@ -128,7 +123,7 @@ func printLinters(lcs []*linter.Config) { deprecatedMark = " [" + color.RedString("deprecated") + "]" } - _, _ = fmt.Fprintf(logutils.StdOut, "%s%s%s: %s [fast: %t, auto-fix: %t]\n", - color.YellowString(lc.Name()), altNamesStr, deprecatedMark, linterDescription, !lc.IsSlowLinter(), lc.CanAutoFix) + _, _ = fmt.Fprintf(logutils.StdOut, "%s%s: %s [fast: %t, auto-fix: %t]\n", + color.YellowString(lc.Name()), deprecatedMark, linterDescription, !lc.IsSlowLinter(), lc.CanAutoFix) } }