We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I encountered the following unhandled error when no scss issues are found:
TypeError: Cannot read property 'forEach' of undefined at [...]/node_modules/gulp-scss-lint/src/checkstyle.js:12:27
This error seems to occur when using the Checkstyle reporter like this:
return gulp .src([ config.appStyles ]) // SCSS lint: .pipe(scssLint({ reporterOutputFormat: 'Checkstyle', filePipeOutput: 'scss-report.xml' })) .pipe(gulp.dest('reports/lint'));
The problem disappears when setting a default value to report.checkstyle.file in src/checkstyle.js:12:
report.checkstyle.file
src/checkstyle.js:12
xml2js(xmlReport, function(err, report) { report.checkstyle.file = report.checkstyle.file || []; // Here report.checkstyle.file.forEach(function(file) { obj[file.$.name] = []; file.error.forEach(function(error) { error.$.linter = error.$.source; error.$.reason = error.$.message; obj[file.$.name].push(error.$); }) }); cb(obj, xmlReport); });
The text was updated successfully, but these errors were encountered:
fixed in version 0.2.1, thank you very much!
Sorry, something went wrong.
No branches or pull requests
I encountered the following unhandled error when no scss issues are found:
This error seems to occur when using the Checkstyle reporter like this:
The problem disappears when setting a default value to
report.checkstyle.file
insrc/checkstyle.js:12
:The text was updated successfully, but these errors were encountered: