Skip to content

Commit f99331a

Browse files
committed
docs: add an anchor on every linter
This will help to link linters without settings Fixes #4841
1 parent f738736 commit f99331a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/website/expand_templates/linters.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ func getLintersListMarkdown(enabled bool) string {
9090
}
9191

9292
func getName(lc *types.LinterWrapper) string {
93-
name := lc.Name
93+
name := span(lc.Name, lc.Name)
9494

9595
if hasSettings(lc.Name) {
96-
name = fmt.Sprintf("[%[1]s](#%[2]s \"%[1]s configuration\")", name, lc.Name)
96+
name = fmt.Sprintf("[%[1]s](#%[2]s \"%[1]s configuration\")", lc.Name, lc.Name)
9797
}
9898

9999
if lc.OriginalURL != "" {

0 commit comments

Comments
 (0)