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)
Google's JavaScript style (and other languages as well I believe) is fairly explicit that no tabs should be in our files. The reasoning being that there is no official standard that I know of on how many spaces a tab is, and with engineers using many, many different editors we want the code to be readable in all of them despite differences in tab interpretation. You're welcome to track this as a feature request on the linter issues list ( http://code.google.com/p/closure-linter/issues/list ), but it would be very low priority for anyone at Google. Hopefully at some point we can make it easy to accept third party contributions in which case something like this could be added by people like yourself who really want it.
Adding such thing like --max-line-length=LENGTH is so easy for Googlers.
On Thursday, January 6, 2011 10:37:20 AM UTC-8, ajp wrote:
Line length falls under the same bucket, that we don't need it within Google as we use the linter to specifically enforce our style guide which only allows 80 character lines (with some special exceptions for long urls, etc.). However, that should be fairly trivial to implement, so a bit more likely that it'd get done.Andy
Say that someone wanted to plumb in a way to configure the line length as an option, and leave 80 as the default, so that Google code compliance still works.Would that be acceptable? How receptive is the community and the Google Linter team to outside suggested patches and features to enable this functionality, granted that we follow all of the Google Python style guidelines for submitting a diff to add this functionality?Our team here at EMC Isilon is looking at JavaScript frameworks to replace the one that we are currently using, and we are greatly impressed by the toolset of the Closure Tools. If our team were to add in some conveniences to this tool, and to other tools, for the greater use of the community and for our own needs, would this be accepted?I would like to avoid forking the library just to add in features that we would need. Would love to know if there is a process that can be followed for contributing to this code and making this a better tool for everyone's use.-Justin Akehurst--
You received this message because you are subscribed to the Google Groups "Closure Linter Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-linter-di...@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .