1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-29 22:28:23 +02:00

fix: change URL to the page with rules descriptions (#1129)

This commit is contained in:
Oleksandr Redko
2024-11-16 13:09:38 +02:00
committed by GitHub
parent 3378f7033b
commit 772285d9c7
7 changed files with 19 additions and 14 deletions

View File

@@ -22,7 +22,7 @@ func (*Plain) Name() string {
func (*Plain) Format(failures <-chan lint.Failure, _ lint.Config) (string, error) {
var buf bytes.Buffer
for failure := range failures {
fmt.Fprintf(&buf, "%v: %s %s\n", failure.Position.Start, failure.Failure, "https://revive.run/r#"+failure.RuleName)
fmt.Fprintf(&buf, "%v: %s %s\n", failure.Position.Start, failure.Failure, ruleDescriptionURL(failure.RuleName))
}
return buf.String(), nil
}