@@ -90,10 +90,12 @@ func getLintersListMarkdown(enabled bool) string {
90
90
}
91
91
92
92
func getName (lc * types.LinterWrapper ) string {
93
- name := lc .Name
93
+ name := spanWithID ( listItemPrefix + lc .Name , "" , "" )
94
94
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 )
97
99
}
98
100
99
101
if lc .OriginalURL != "" {
@@ -102,7 +104,7 @@ func getName(lc *types.LinterWrapper) string {
102
104
icon = "<FaGitlab size={'0.8rem'} />"
103
105
}
104
106
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 )
106
108
}
107
109
108
110
if lc .Deprecation == nil {
@@ -322,7 +324,7 @@ func getLintersSettingSections(node, nextNode *yaml.Node) (string, error) {
322
324
323
325
_ , _ = fmt .Fprintln (builder , "```" )
324
326
_ , _ = 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 )
326
328
_ , _ = fmt .Fprintln (builder )
327
329
}
328
330
0 commit comments