@@ -90,10 +90,12 @@ func getLintersListMarkdown(enabled bool) string {
9090}
9191
9292func getName (lc * types.LinterWrapper ) string {
93- name := lc .Name
93+ name := spanWithID ( listItemPrefix + lc .Name , "" , "" )
9494
95- if hasSettings (lc .Name ) {
96- name = fmt .Sprintf ("[%[1]s](#%[2]s \" %[1]s configuration\" )" , name , lc .Name )
95+ if hasSettings (lc .Name ) && lc .Deprecation == nil {
96+ name += fmt .Sprintf ("[%[1]s %[2]s](#%[1]s \" %[1]s configuration\" )" , lc .Name , "<FaCog size={'0.8rem'} />" )
97+ } else {
98+ name += fmt .Sprintf ("%[1]s[%[2]s](#%[2]s \" %[2]s has no configuration\" )" , spanWithID (lc .Name , "" , "" ), lc .Name )
9799 }
98100
99101 if lc .OriginalURL != "" {
@@ -102,7 +104,7 @@ func getName(lc *types.LinterWrapper) string {
102104 icon = "<FaGitlab size={'0.8rem'} />"
103105 }
104106
105- name = fmt .Sprintf ("%s [%s](%s)" , name , spanWithID ( listItemPrefix + lc . Name , lc .Name + " repository" , icon ), lc .OriginalURL )
107+ name + = fmt .Sprintf (" [%s](%s)" , span ( lc .Name + " repository" , icon ), lc .OriginalURL )
106108 }
107109
108110 if lc .Deprecation == nil {
@@ -322,7 +324,7 @@ func getLintersSettingSections(node, nextNode *yaml.Node) (string, error) {
322324
323325 _ , _ = fmt .Fprintln (builder , "```" )
324326 _ , _ = fmt .Fprintln (builder )
325- _ , _ = fmt .Fprintf (builder , "[%s](#%s)\n \n " , span ("Back to the top" , "🔼 " ), listItemPrefix + nextNode .Content [i ].Value )
327+ _ , _ = fmt .Fprintf (builder , "[%s](#%s)\n \n " , span ("Back to the top" , "<FaArrowUp /> " ), listItemPrefix + nextNode .Content [i ].Value )
326328 _ , _ = fmt .Fprintln (builder )
327329 }
328330
0 commit comments