Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nigelfds/jsmetric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[WARNING: This project is not yet ready for proper use. Its very much an alpha at the moment]

*** Installation

$ gem install jsmetric


*** Usage

Cyclometric complexity for a file:
$ ./bin/jsmetric path_to_js_file

Cyclometric complexity for all .js files in a Directory
$ ./bin/jsmetric path_to_dir



*** Backlog/Future Work

- JSLint options are buried in the options.js file. Need to pull these out.
- Refactor the nasty code in the complexity analyser
- Add Debug messages for when a JS file fails JSLint validation


[Notes for developing JSMetric itself futher]

*** To get started you need:

Ruby 1.9.2
Bundler 1.x

This project contains a .rvmrc file for use with RVM.

*** Setting up dev environment

$ ./build

*** Dev smoke

$ ./bin/jsmetric features/sample_js_files_for_test/foobar.js

About

Javascript cyclometric complexity metrics

Resources

Stars

Watchers

Forks

Packages

No packages published