New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

complexity-report

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

complexity-report - npm Package Compare versions

Comparing version

to
0.2.2

5

package.json
{
"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"

12

README.md

@@ -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 @@ }