From 5b68bfefd610dd786f16f7bbbe38501b2225d20f Mon Sep 17 00:00:00 2001 From: lkuehne Date: Tue, 18 Feb 2003 06:21:33 +0000 Subject: [PATCH] started documenting all the new checks (help wanted :-) --- docs/config_misc.html | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) 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 @@
  • UpperEll
  • +
  • + AvoidInlineConditionals +
  • +
    docs missing for: +
  • + InterfaceIsType +
  • +
  • + HideUtilityClassConstructor +
  • +
  • + DesignForInheritance +
  • +
  • + ArrayTypeStyle +
  • +
  • + FinalParameters +
  • @@ -477,6 +496,41 @@ like 1. TreeWalker

    + +

    AvoidInlineConditionals

    Description

    +

    + 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. +

    +

    Examples

    +

    + To configure the check: +

    +
    +<module name="AvoidInlineConditionals"/>
    +      
    +

    Package

    +

    + com.puppycrawl.tools.checkstyle.checks +

    +

    Parent Module

    +

    + TreeWalker +

    +