Modifying NeedsBraces Check

tymieniecki <[email protected]> Sun, 29 Jan 2012 08:48:42 -0800 (PST)
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Hi Folks,

OK now lets accept that the NEEDSBRACES is absolute, but I am sure we come
across 'pragmatic' sites who take the view that if there is only one
statement, why have braces, of the form:
If (condition)
   java statement;
Else
{
  java statement;
  java statement;
  java statement;
}

is there any value in modifying NEEDS BRACES to accept one extra property :
TOKENS - Tokens within which single line blocks are acceptable

Regards



 




--
View this message in context: http://checkstyle.2069334.n4.nabble.com/Modifying-NeedsBraces-Check-tp4338644p4338644.html
Sent from the CheckStyle - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2