Hi,
Happy New Year!
May 2011 bring nice optimization ideas to all of you :o)...
First, I'd like to say "Nice job with these new tools!!! Very great
they are... useful !"
May I suggest an option to the Closure Linter for the "E:0005: Illegal
tab..." warning :
It might be interesting to choose an indentation style made of
tabulations by switching on an option (like --[no]tab-indentation :
default to false)
In that case :
- tabs could be use only at first place on each line, and before any
other character ;
- the next character could be one - then, only one - whitespace just
before - and only before - a star (for JsDocs) ;
OK Example :
[TAB]/**
[TAB][SP]* Some explanation.
[TAB][SP]*/
[TAB]function test() {
[TAB][TAB]someCode();
[TAB]}
Wrong Examples :
[TAB][SP]function test() { // wrong
[TAB][SP][TAB]some_code(); // wrong
[TAB][SP]} // wrong
[TAB][TAB]var[TAB]myVar; // wrong
---------------------------------------------------------
One another option could be interesting for the "E:0110: Line too
long" warning :
we might want to choose as well, how many characters we want to accept
for each line
(ie. --max-line-length=LENGTH : default to 80 and 0 for unlimited)
---------------------------------------------------------
FYI... My validation reference is the JSLint validation tool which
accepts the tab spaces...
(with most of the strict options activated, including 'use strict';
statement)
(JSLint by Douglas Crockford :
http://jslint.com/)
++
Y@