Open VWoeltjen opened 8 years ago
Supporting a jshint-like syntax for reporter options would also be useful, e.g.:
gulp.task('checkstyle', function () {
return gulp.src(paths.scripts)
.pipe(jscs())
.pipe(jscs.reporter('jscs-html-reporter', {
reporterOutput: __dirname + "/jscs-report.html"
}));
});
@VWoeltjen just an FYI - I have added support for gulp-jscs
to jscs-html-reporter.
I'm having some compatibility issues when trying to use the jscs-html-reporter
This works fine:
But this does not:
When I run this task, I hit an error with that reporter:
(Full stack trace omitted for brevity.)
I'm guessing there is some difference between the way jscs normally invokes a reporter, and the way it's getting invoked from gulp-jscs. It would be useful to have sufficient compatibility with vanilla jscs to use this reporter.
I have found the gulp-jscs-with-reporter and gulp-jscs-html-reporter projects, which provide a workaround to this, but I would prefer not to switch to a fork of gulp-jscs for this one feature.