diff --git a/docs/config_misc.html b/docs/config_misc.html index 2e0da3c03..1747df258 100644 --- a/docs/config_misc.html +++ b/docs/config_misc.html @@ -301,8 +301,23 @@

SimplifyBooleanReturn

Description

- Checks for overly complicated boolean return statements. Idea shamelessly stolen - from the equivalent PMD rule. + Checks for overly complicated boolean return statements. For example the following code +

+
+if (valid())
+    return false;
+else
+    return true;
+      
+

+ could be written as +

+return !valid();
+      
+

+

+ The Idea for this Check has been shamelessly stolen + from the equivalent PMD rule.

Example