diff --git a/gulpfile.js b/gulpfile.js index d3d6b5d21d..380f233758 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -126,10 +126,17 @@ gulp.task('lint', function () { gulp.task('checkstyle', function () { var jscs = require('gulp-jscs'); + var mkdirp = require('mkdirp'); + var reportName = 'jscs-html-report.html'; + var reportPath = path.resolve(paths.reports, 'checkstyle', reportName); + var moveReport = fs.rename.bind(fs, reportName, reportPath, _.noop); + + mkdirp.sync(path.resolve(paths.reports, 'checkstyle')); return gulp.src(paths.scripts) .pipe(jscs()) .pipe(jscs.reporter()) + .pipe(jscs.reporter('jscs-html-reporter')).on('finish', moveReport) .pipe(jscs.reporter('fail')); }); diff --git a/package.json b/package.json index c46c79de0a..ed9b9b2ecd 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "gulp-sass": "^2.2.0", "gulp-sourcemaps": "^1.6.0", "jasmine-core": "^2.3.0", + "jscs-html-reporter": "^0.1.0", "jsdoc": "^3.3.2", "jshint": "^2.7.0", "karma": "^0.13.3",