Skip to content
New issue

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

List of error codes? #38

Open
TheDutchCoder opened this issue Jul 3, 2015 · 5 comments
Open

List of error codes? #38

TheDutchCoder opened this issue Jul 3, 2015 · 5 comments

Comments

@TheDutchCoder
Copy link

Hey,

Can you please document your list of error codes?

We're struggling figuring out what's going on, as both errors and warnings seem to throw code 1, whereas scss-lint itself uses different codes for different types of events: https://github.com/brigade/scss-lint#exit-status-codes

Thanks!

@juanfran
Copy link
Owner

juanfran commented Jul 7, 2015

Hi!

gulp-scss-lint doesn't have own error codes for warnings and errors because it doesn't throw exceptions with them.

@seeliang
Copy link

Hi Juan,

First,
thank you for share your package,

related to this question,
i followed the guide, but my set is not working

</
var gulp = require('gulp'),
scsslint = require('gulp-scss-lint'),

gulp.task('scss-lint', function() {
gulp.src('./assets/scss/demo/_lint-demo.scss')
.pipe(scsslint({}));
});

gulp.task('default', ['scss-lint']);
/>

the scss-lint never provide any feedback in following two cases,

  1. none exist file
  2. when "scss-lint " provide error info

Feeback:
[12:21:14] Starting 'scss-lint'...
[12:21:14] Finished 'scss-lint' after 7.83 ms
[12:21:14] Starting 'default'...
[12:21:14] Finished 'default' after 51 μs

could you info me what i missed?

Many thanks

@juanfran
Copy link
Owner

Thank for your feedback

  1. If the file doesn't exist the gulp.src doesn't send the file to gulp-scss-lint therefore does nothing. For me it is a normal behavior.
  2. if scss-lint provides errors then there is something wrong, Could you add the verbose options a run the output command by gulp-scss-lint?, thanks!

@seeliang
Copy link

seeliang commented Aug 1, 2015

Thanks for the feedback, Juan,

about the issue i have right now,
it could be my asking this in a wrong way,
let me correct myself, :)

if i do not have the file, i run "scss-lint", i get

"No SCSS files matched by the patterns:"

and i have not successfully received any scss-lint validation info (like this one) with gulp-scss-lint.
that's my gulp setting issue i need your help : (

my understanding is "verbose" is for debugger gulp-scss-lint, not for showing SCSS-lint validation info,
it's that correct?

Many Thanks

@juanfran
Copy link
Owner

juanfran commented Aug 6, 2015

gulp-scss-lint doesn't run anything because gulp.src doesn't send something that doesn't exist so in gulp-scss-lint I can't run scss-lint without files.

Yes, verbose shows the scsslint command, you can copy it a run it outside gulp to see the original scss-lint output. With this option you can check what is wrong in that command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants