Skip to content

PaquitoSoft/JSQA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript quality analysis tool

This is a simple tool which uses JsHint to analyze your Javascript code. You need to configure your JS base path and the rules you want to apply. When you run this tool it analyze all the files in your base path (recursively) and then it keeps watching for changes in any of them so a new analysis is fired if you edit your code.

A web server is started (by default at port 5000) to let you view a clean and simple analysis report.

Screenshot

It also uses the outstanding Socket.io library to push changes from the server to the client so they don't have to refresh the web page to see new analysis results.

How to use

Prerequisites: This tools is written using NodeJs so you'll need it installed into your system. Also, you should install npm.

First you have to clone this repo

$> git clone git://github.com/PaquitoSoft/JSQA.git

Get into the directory and install tool dependencies

$> cd JSQA
$> npm install -d

Now that you have the tool ready, configure it for your project. This involves updating two files:

  • lib/config.js -> Here you set your project js folder and your exclusions (optional)
  • lib/rules.js -> These are the options passed to JSHINT for analysis.

That's it. Now you only need to run the application:

$> node app.js

Web server starts listening on port 5000 by default, so open up a browser and point it to http://locahost:5000

TODO

  • Use the same instance application to analyze several projects
  • Save a history of the projects analysis.

About

Javascript quality analysis tool based on JSHINT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published