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 0.8.1 to 0.9.0

5

package.json
{
"name": "complexity-report",
"version": "0.8.1",
"version": "0.9.0",
"author": "Phil Booth <pmbooth@gmail.com>",

@@ -9,3 +9,4 @@ "description": "A tool for reporting code complexity metrics in JavaScript projects.",

{ "name": "Juzer Ali" },
{ "name": "Mark Trostler" }
{ "name": "Mark Trostler" },
{ "name": "Wyatt Preul" }
],

@@ -12,0 +13,0 @@ "bin": {

@@ -63,2 +63,3 @@ # complexityReport.js

defaults to `plain`.
* `-a`: Include hidden files in the report.
* `-m <maintainability>`: Specify the per-module maintainability index threshold

@@ -148,5 +149,7 @@ (beyond which, the process will fail when exiting).

Build tasks:
Build tools:
* [Viget Labs][viget]' [grunt-complexity].
* [Viget Labs][viget]' [grunt-complexity];
* [Cliffano Subagio][cliffano]'s [Bob];
* [Cardio].

@@ -214,2 +217,5 @@ ## Development

[grunt-complexity]: https://github.com/vigetlabs/grunt-complexity
[cliffano]: http://blog.cliffano.com/
[bob]: https://github.com/cliffano/bob
[cardio]: https://github.com/auchenberg/cardio
[tracker]: https://github.com/philbooth/complexityReport.js/issues

@@ -216,0 +222,0 @@ [node]: http://nodejs.org/

8

src/cli.js

@@ -38,2 +38,6 @@ #!/usr/bin/env node

option(
'-a, --allfiles',
'include hidden files in the report'
).
option(
'-m, --maxmi <maintainability>',

@@ -120,3 +124,5 @@ 'specify the per-module maintainability index threshold',

readFiles(
fs.readdirSync(directoryPath).map(function (p) {
fs.readdirSync(directoryPath).filter(function (p) {
return path.basename(p).charAt(0) !== '.' || cli.allfiles;
}).map(function (p) {
return path.resolve(directoryPath, p);

@@ -123,0 +129,0 @@ })

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc