Installing And Using JSLint.VS For JS Code Analysis

JSLint.VS is a Java Script code analysis tool. This tool is an add-in for Visual Studio 2005 and 2008. This tool has been developed by an individual programmer.

Download Location:

JSLint.VS is a standard Visual Studio add-in.

Steps to Install JSLint.VS:

  1. Close all instances of Visual Studio .NET
  2. Copy files to %My Documents%/Visual Studio 2005/Addins (if directory does not exist, create it)
  3. If you want to use Add-In in Visual Studio 2008, then copy to directory %My Documents%/Visual Studio 2008/Addins
  4. When you start Visual Studio you should have JSLint.VS entry in Tools -> Add-in Manager

Using JSLint.VS:

  1. After installing the JSLint.VS you can see the tool in Visual Studio 2005 or 2008 Add-in manager.
  2. If you go to Tools menu you can see the JSLint.VS option menu listed on the top.
  3. The tools menu provides the option to automatically run the tool during build or not. If we choose to do the code review during the build time, then there are options to include or exclude the projects from the solution from being code reviewed. The errors identified during build time will be listed with the other build time errors or warnings.
  4. If needed, we can apply the code review on an individual java script file. Select a script file and right-click, select the “JSLint File” option to do code review against the java script file.

But the problem using this tool is, it’s not recognizing lot of JQuery scripts.

More Code Review Tools

See this article for the other code review tools I’ve used for .Net web application development.


Leave your thoughts...

This site uses Akismet to reduce spam. Learn how your comment data is processed.