Technology is supposed to be fun ...

JSlint for Your Big Project

Posted: January 30th, 2011 | Author: | Filed under: Uncategorized | Tags: | No Comments »

So, many years ago, I was pretty pumped up about having found a decent way to run JSlint on the command line instead of having to either paste it into the jslint website or even run it through an IDE. That approach works well so long that you have a little project and you don’t have massive code base. This time around I wanted to find a decent way of running it against a larger code base with multiple developers, jsLintWrapper is the proposed solution. When I was investigating ways to do this I didn’t find anything that worked well for me and no good way of excluding some of the errors that jslint complains about. When I looked at the jquery project they had a good way to exclude some of the errors so I snagged that idea and built it further to run on a large code base. This meant finding a way to run them on all files and be reasonably quick. I also added in some ways of placing a stick in the ground, sort of speak where you pick an day where you want to be lint free after and then you only have to lint files that you modify this is a good strategy for getting a clean run which you can then tie into your commit hooks, build process or what ever ways work for your workflow. This is still a work in progress so I would appreciate feedback and suggestions for features.



Leave a Reply