=======================
This grunt task extension is able to create different report output formats based on JavaScript Copy- Past- Detector reports. JSCPD Reporter just creates readable output formats. Use https://github.com/mazerte/grunt-jscpd to detect Copy- Past- errors.
Hint: Currently only HTML-Output is supported.
Take a look at the Demo
By using grunt-jscpd this extension will create an readable HTML file which is based on grunt-jscpd xml-output.
Grunt task https://github.com/mazerte/grunt-jscpd is required.
npm install grunt-jscpd-reporter
Gruntfile
// Gruntfile.js
grunt.loadNpmTasks('grunt-jscpd-reporter');
Configure sourceFile and outputDir in grunt.initConfig();
jscpdreporter: {
options: {
sourcefile: '<grunt-jscpd>/output.xml',
outputDir: 'report/'
}
}
- Renamed grunt configuration index into
jscpdReporter
. - Added "no duplicates found - message" #2.
- Tuned layout and UI.
- Fixed #3.
- Fixed issue #1 - #1
- Added demo link and screenshots.