Skip to content

Commit 142304a

Browse files
rshindomichael-o
authored andcommitted
[MCHECKSTYLE-450] Checkstyle rule link format results in 404
New links direct to https://checkstyle.org/checks/{category}/{ruleName}.html This fixes #134
1 parent 1ad6033 commit 142304a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReportRenderer.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ private void renderRuleRow(ConfReference ref, CheckstyleResults results, String
242242
// column 2: Rule name + configured attributes
243243
sink.tableCell();
244244
if (!"extension".equals(category)) {
245-
sink.link("https://checkstyle.org/config_" + category + ".html#" + ruleName);
245+
sink.link(
246+
"https://checkstyle.org/checks/" + category + "/" + ruleName.toLowerCase(Locale.ENGLISH) + ".html");
246247
sink.text(ruleName);
247248
sink.link_();
248249
} else {

0 commit comments

Comments
 (0)