complexity-report
Advanced tools
Comparing version
{ | ||
"name": "complexity-report", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"author": "Phil Booth <pmbooth@gmail.com>", | ||
@@ -28,4 +28,3 @@ "description": "A tool for reporting code complexity metrics in JavaScript projects.", | ||
"dependencies": { | ||
"coffee-script": "1.3.x", | ||
"check-types": "0.1.x", | ||
"check-types": "0.2.x", | ||
"esprima": "0.9.x", | ||
@@ -32,0 +31,0 @@ "commander": "1.0.5" |
@@ -31,5 +31,5 @@ # complexityReport.js | ||
* `-l`: Disregads operator `||` as a source of cyclomatic complexity. | ||
* `-s`: Disegards switch statements as a source of cyclomatic complexity. | ||
* `-i`: Treats for...in loops as a source of cyclomatic complexity. | ||
* `-c`: Treats catch clauses as a source of cyclomatic complexity. | ||
* `-s`: Disegards `switch` statements as a source of cyclomatic complexity. | ||
* `-i`: Treats `for`...`in` loops as a source of cyclomatic complexity. | ||
* `-c`: Treats `catch` clauses as a source of cyclomatic complexity. | ||
@@ -67,5 +67,5 @@ #### Output formats | ||
* `logicalor`: Disregads operator `||` as a source of cyclomatic complexity. | ||
* `switchcase`: Disegards switch statements as a source of cyclomatic complexity. | ||
* `forin`: Treats for...in loops as a source of cyclomatic complexity. | ||
* `trycatch`: Treats catch clauses as a source of cyclomatic complexity. | ||
* `switchcase`: Disegards `switch` statements as a source of cyclomatic complexity. | ||
* `forin`: Treats `for`...`in` loops as a source of cyclomatic complexity. | ||
* `trycatch`: Treats `catch` clauses as a source of cyclomatic complexity. | ||
@@ -72,0 +72,0 @@ The returned report is an object |
@@ -240,3 +240,3 @@ /** | ||
function processCall (call, currentReport) { | ||
processTree(call.arguments, currentReport); | ||
processTree(call['arguments'], currentReport); | ||
processNode(call.callee, currentReport); | ||
@@ -243,0 +243,0 @@ } |
3
-25%48691
-0.03%+ Added
- Removed
- Removed
- Removed
Updated