complexity-report
Advanced tools
+2
-3
| { | ||
| "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" |
+6
-6
@@ -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 @@ } |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
3
-25%48691
-0.03%+ Added
- Removed
- Removed
- Removed
Updated