From 5f9277dbc94348d9211f86eb1b7718e4afcc4f95 Mon Sep 17 00:00:00 2001
From: Ludovic Fernandez <ldez@users.noreply.github.com>
Date: Sun, 14 Apr 2024 14:38:02 +0200
Subject: [PATCH] dev: remove alternatives names from CLI help (#4641)

---
 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 42da4a3d..cb398fe5 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)
 	}
 }