complexity-report
Advanced tools
Comparing version 0.8.1 to 0.9.0
{ | ||
"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/ |
@@ -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
196617
3105
226