10

I'm looking for something that works like Checkstyle for JavaScript. I know about JSLint and I'm already using Google's Closure compiler, but these mostly check for syntactic issues. Checkstyle can check for braces on the wrong line, but it also makes it possible to write custom checks like don't use HashMap.

I'm looking for something like that for an upcoming JavaScript project. Any ideas?

2
  • Just to clarify, Checkstyle (checkstyle.sourceforge.net) is a Java tool that helps developers stick to a coding standard.
    – dave1010
    Commented May 25, 2010 at 12:32
  • 1
    PMD has some checks for Ecmascript. Also this tool provides ability to write custom rules by using XPath. Look to it, probably they can help you. Commented Aug 28, 2012 at 10:02

1 Answer 1

7

Google Closure Linter: http://code.google.com/closure/utilities/

"The Closure Linter is a utility that checks JavaScript files for style issues such as operator placement, missing semicolons, spacing, the presence of JsDoc annotations, and more."

Not the answer you're looking for? Browse other questions tagged or ask your own question.