This rule is defined by the following Java class: net.sourceforge.pmd.rules.design.OnlyOneReturnRule
Example:
public class OneReturnOnly1 { public void foo(int x) { if (x > 0) { return "hey"; // oops, multiple exit points! } return "hi"; } }