Package Exports
- grunt-jscpd-reporter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (grunt-jscpd-reporter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Grunt JSCPD Reporter
=======================
What is it?
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.
Screenshot
Demo
Take a look at the Demo
Requirement dependency
By using grunt-jscpd this extension will create an readable HTML file which is based on grunt-jscpd xml-output.
Build for jscpd & grunt-jscpd 0.0.11
Grunt task https://github.com/mazerte/grunt-jscpd is required.
Install
npm install grunt-jscpd-reporter
Configuration
Gruntfile
// Gruntfile.js
grunt.loadNpmTasks('grunt-jscpd-reporter');
Configure sourceFile and outputDir in grunt.initConfig();
jscpdreporter: {
options: {
sourcefile: '<grunt-jscpd>/output.xml',
outputDir: 'report/'
}
}
Release log
0.2.0
- Renamed grunt configuration index into
jscpdReporter
. - Added "no duplicates found - message" https://github.com/linslin/grunt-jscpd-reporter/issues/2.
- Tuned layout and UI.
- Fixed https://github.com/linslin/grunt-jscpd-reporter/issues/3.
0.1.5 & 0.1.4 Stable release
- Fixed issue #1 - https://github.com/linslin/grunt-jscpd-reporter/issues/1
0.1.3 alpha release
- Added demo link and screenshots.