Gulp plugin for the copy/paste detector jscpd
npm install gulp-jscpdgulp-jscpd
====================
[![Maintenance Status][status-image]][status-url] [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][deps-image]][deps-url] [![Coverage Status][coverage-image]][coverage-url] [![Code Climate][climate-image]][climate-url]
> Gulp plugin for the copy/paste detector jscpd.

$ npm install gulp-jscpd
``javascript
var gulp = require('gulp');
var jscpd = require('gulp-jscpd');
gulp.task('jscpd', function() {
return gulp.src('*/.js')
.pipe(jscpd({
'min-lines': 10,
verbose : true
}));
});
`
Type: Number
Min size of duplication in code lines, default to 5.
Type: Number
Min size of duplication in code tokens, default to 70.
Type: String
Reporter name or path to the custom reporter, default to xml.
Type: Array
List of languages which scan for duplicates, default to ['javascript', 'typescript', 'jsx', 'haxe', 'coffeescript', 'ruby', 'php', 'python', 'css', 'java', 'csharp', 'go', 'clike', 'htmlmixed'].
Type: String
Path to report XML file, default to null (no report file).
Type: Boolean
Show full info about copies, default to false.
Type: Boolean
Show debug information (options list and selected files), default to false.
Type: Boolean
Don't print a report summary, default to false.
Type: Boolean
Don't throw an error in case of duplicated occurrences (useful for CI), default to true`.
Run tests using mocha
$ npm test
Output a code coverage report in coverage.html
$ npm run coverage
Check the code style with JSCS
$ npm run checkstyle
gulp-jscpd is licensed under the MIT License.
[npm-url]: https://npmjs.org/package/gulp-jscpd
[npm-image]: http://img.shields.io/npm/v/gulp-jscpd.svg?style=flat
[travis-url]: https://travis-ci.org/yannickcr/gulp-jscpd
[travis-image]: http://img.shields.io/travis/yannickcr/gulp-jscpd/master.svg?style=flat
[deps-url]: https://gemnasium.com/yannickcr/gulp-jscpd
[deps-image]: http://img.shields.io/gemnasium/yannickcr/gulp-jscpd.svg?style=flat
[coverage-url]: https://coveralls.io/r/yannickcr/gulp-jscpd?branch=master
[coverage-image]: http://img.shields.io/coveralls/yannickcr/gulp-jscpd/master.svg?style=flat
[climate-url]: https://codeclimate.com/github/yannickcr/gulp-jscpd
[climate-image]: http://img.shields.io/codeclimate/github/yannickcr/gulp-jscpd.svg?style=flat
[status-url]: https://github.com/yannickcr/gulp-jscpd/pulse
[status-image]: http://img.shields.io/badge/status-maintained-brightgreen.svg?style=flat