diff --git a/docs/config_misc.html b/docs/config_misc.html index f65d59964..f4177f3d5 100644 --- a/docs/config_misc.html +++ b/docs/config_misc.html @@ -52,6 +52,25 @@
+ Detects inline conditionals. + + An example inline conditional is this: +
+
+String a = getParameter("a");
+String b = (a==null || a.length<1) ? null : a.substring(1);
+
+ + Rationale: Some developers find inline conditionals hard to read, + so their company's coding standards forbids them. +
++ Rationale: Some developers find inline conditionals hard to read, + so their company's coding standards forbids them. +
++ To configure the check: +
++<module name="AvoidInlineConditionals"/> ++
+ com.puppycrawl.tools.checkstyle.checks +
++ TreeWalker +
+