I agree - this is valid Javascript structure.  You only need braces when
there's more than one line in the body of the "if" or "for" clause - you
can use the braces in this instance but it's optional.

If the tool doesn't complain about these structures when generating the
source or build instances, then I would expect the "lint" feature to
recognize the same valid structures.  I expect this is a bug in the
"lint" option of the generator script, unless it only shows a warning
versus an error in the output.

   Gene

On Fri, 2009-10-02 at 22:01 +0200, [email protected] wrote:

> Hi.
> 
> generate.py lint is a very useful tool. However, if you have a one-liner not 
> enclosed in braces as the body of a for loop, or after an if statement, it 
> still complains about missing braces.
> 
> Is there a way to disable this behavior? I mean, not have it complain about 
> missing braces at all?
> 
> br, 
> 
> flj
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to