gulp-jsinspect
Advanced tools
Comparing version 0.0.0 to 1.0.0
{ | ||
"name": "gulp-jsinspect", | ||
"version": "0.0.0", | ||
"description": "A JavaScript copy-paste analysis gulp task", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"version": "1.0.0", | ||
"description": "Gulp plugin for running jsinspect (detect copy-pasted and structurally similar code)", | ||
"license": "MIT", | ||
"homepage": "https://github.com/alexeyraspopov/gulp-jsinspect", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/alexeyraspopov/gulp-jsinspect.git" | ||
"url": "https://github.com/alexeyraspopov/gulp-jsinspect" | ||
}, | ||
"author": "Alexey Raspopov (https://github.com/alexeyraspopov)", | ||
"contributors": [ | ||
{ | ||
"name": "Dmitry Semigradsky", | ||
"email": "semigradskyd@gmail.com", | ||
"url": "https://github.com/Semigradsky" | ||
} | ||
], | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"gulpplugin", | ||
"analysis", | ||
"analyze", | ||
"report", | ||
"duplication", | ||
"copy-paste" | ||
"inspect", | ||
"detect", | ||
"code", | ||
"duplicate", | ||
"structure", | ||
"copy", | ||
"paste" | ||
], | ||
"author": "Alexey Raspopov <avenger7x13@gmail.com> (https://github.com/alexeyraspopov)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/alexeyraspopov/gulp-jsinspect/issues" | ||
}, | ||
"homepage": "https://github.com/alexeyraspopov/gulp-jsinspect" | ||
"dependencies": { | ||
"chalk": "*", | ||
"gulp-util": "^3.0.0", | ||
"jsinspect": "^0.5.0", | ||
"through2": "^0.6.1", | ||
"util-extend": "^1.0.1" | ||
} | ||
} |
@@ -1,27 +0,64 @@ | ||
# gulp-jsinspect | ||
# gulp-[jsinspect](https://github.com/danielstjules/jsinspect) | ||
> Detect copy-pasted and structurally similar code with [JSInspect](https://github.com/danielstjules/jsinspect) | ||
> Gulp plugin for running jsinspect (detect copy-pasted and structurally similar code) | ||
## Install | ||
npm install --save-dev gulp-jsinspect | ||
```sh | ||
$ npm install --save-dev gulp-jsinspect | ||
``` | ||
## Usage | ||
var gulp = require('gulp'), | ||
jsinspect = require('gulp-jsinspect'); | ||
```js | ||
var gulp = require('gulp'); | ||
var jsinspect = require('gulp-jsinspect'); | ||
gulp.task('default', function(){ | ||
return gulp.src('*.js') | ||
.pipe(jsinspect({/* options */})); | ||
}); | ||
gulp.task('default', function () { | ||
return gulp.src('app.js') | ||
.pipe(jsinspect({ | ||
'threshold': 10, | ||
'identifiers': true, | ||
'suppress': 0 | ||
})); | ||
}); | ||
``` | ||
## Options | ||
* `threshold` - minimum size of nodes (default: 15) | ||
* `identifiers` - match identifiers (default: false) | ||
* `diff` - enable 2-way diffs (default: false) | ||
### Options | ||
## License | ||
#### threshold | ||
Type: `Number` | ||
Default value: `15` | ||
[MIT License](https://en.wikipedia.org/wiki/MIT_License) © Alexey Raspopov | ||
Number of nodes. | ||
#### suppress | ||
Type: `Number` | ||
Default value: `100` | ||
length to suppress diffs (off: 0). | ||
#### identifiers | ||
Type: `Boolean` | ||
Default value: `false` | ||
Match identifiers. | ||
#### noDiff | ||
Type: `Boolean` | ||
Default value: `false` | ||
Disables 2-way diffs. | ||
#### noColor | ||
Type: `Boolean` | ||
Default value: `false` | ||
Disables colors. | ||
#### failOnMatch | ||
Type: boolean | ||
Default value: `true` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4472
4
55
0
65
5
2
2
+ Addedchalk@*
+ Addedgulp-util@^3.0.0
+ Addedjsinspect@^0.5.0
+ Addedthrough2@^0.6.1
+ Addedutil-extend@^1.0.1
+ Addedacorn@0.10.0(transitive)
+ Addedansi-gray@0.1.1(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedansi-wrap@0.1.0(transitive)
+ Addedarray-differ@1.0.0(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedbeeper@1.1.1(transitive)
+ Addedchalk@1.1.35.3.0(transitive)
+ Addedclone@1.0.4(transitive)
+ Addedclone-stats@0.0.1(transitive)
+ Addedcolor-support@1.1.3(transitive)
+ Addedcommander@12.1.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddateformat@2.2.0(transitive)
+ Addeddiff@1.0.8(transitive)
+ Addedduplexer2@0.0.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfancy-log@1.3.3(transitive)
+ Addedfile@0.2.2(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedglogg@1.0.2(transitive)
+ Addedgulp-util@3.0.8(transitive)
+ Addedgulplog@1.0.0(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-gulplog@0.1.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@0.0.11.0.0(transitive)
+ Addedjsinspect@0.5.0(transitive)
+ Addedlodash._basecopy@3.0.1(transitive)
+ Addedlodash._basetostring@3.0.1(transitive)
+ Addedlodash._basevalues@3.0.0(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash._isiterateecall@3.0.9(transitive)
+ Addedlodash._reescape@3.0.0(transitive)
+ Addedlodash._reevaluate@3.0.0(transitive)
+ Addedlodash._reinterpolate@3.0.0(transitive)
+ Addedlodash._root@3.0.1(transitive)
+ Addedlodash.escape@3.2.0(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedlodash.restparam@3.6.1(transitive)
+ Addedlodash.template@3.6.2(transitive)
+ Addedlodash.templatesettings@3.1.1(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmultipipe@0.1.2(transitive)
+ Addednode-filepaths@0.0.3(transitive)
+ Addedobject-assign@3.0.0(transitive)
+ Addedparse-node-version@1.0.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@1.0.341.1.142.3.8(transitive)
+ Addedreplace-ext@0.0.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsparkles@1.0.1(transitive)
+ Addedstring_decoder@0.10.311.1.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedstrip-indent@1.0.1(transitive)
+ Addedstrip-json-comments@1.0.2(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedthrough2@0.6.52.0.5(transitive)
+ Addedtime-stamp@1.1.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedutil-extend@1.0.3(transitive)
+ Addedvinyl@0.5.3(transitive)
+ Addedxtend@4.0.2(transitive)