Skip to content

Commit

Permalink
Wrong context help for some uncategorized checks
Browse files Browse the repository at this point in the history
Some checks have no category and need to be redirected to "misc".
Example: UpperEll.
  • Loading branch information
Bananeweizen authored and Calixte committed Mar 9, 2024
1 parent 3f21259 commit 7a7c538
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static String getOnlineHelp(String moduleName) {
}
var group = metadata.getGroup().getGroupId().toLowerCase();
// some web pages are different to the packages in Checkstyle
if ("indentation".equals(group)) {
if ("indentation".equals(group) || StringUtils.isEmpty(group)) {
group = "misc";
}
var file = moduleName.toLowerCase();
Expand Down

0 comments on commit 7a7c538

Please sign in to comment.