Skip to content

Commit

Permalink
[MCHECKSTYLE-450] Checkstyle rule link format results in 404
Browse files Browse the repository at this point in the history
  • Loading branch information
rshindo authored and michael-o committed Jun 1, 2024
1 parent 1ad6033 commit 142304a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ private void renderRuleRow(ConfReference ref, CheckstyleResults results, String
// column 2: Rule name + configured attributes
sink.tableCell();
if (!"extension".equals(category)) {
sink.link("https://checkstyle.org/config_" + category + ".html#" + ruleName);
sink.link(
"https://checkstyle.org/checks/" + category + "/" + ruleName.toLowerCase(Locale.ENGLISH) + ".html");
sink.text(ruleName);
sink.link_();
} else {
Expand Down

0 comments on commit 142304a

Please sign in to comment.