Skip to content

Error writing report to XML file #47

@StephenBugden

Description

@StephenBugden

Hello,

I posted a question a couple of days ago, but can see that it's now closed:
#46

I changed my code according to the suggestion there, it now reads:
Here's the code:

var gulp = require('gulp');

var CSS_PATH = 'public/css/*/.css';
var DIST_PATH = 'public/dist';

gulp.task('lintcss', function(cb) {
  var fs = require('fs');
  var output = '';

gulp.src(CSS_PATH)
.pipe(csslint())
    .pipe(csslint.reporter('junit-xml', {logger: function(str) { output += str; }}));

  fs.writeFile(DIST_PATH + 'junit.xml', output, cb);
});

But i now get an error 'Error: Invalid reporter'

I took the code original from:
https://www.npmjs.com/package/gulp-csslint
But obviously something still isn't right.

All I really want to do is to output the report as xml to a file.

Best Regards,

Steve

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions