Skip to content

max-warnings is not reflected in gulp-sass-lint #73

@chris-rock

Description

@chris-rock

The current release of gulp-sass-lint is not taking the option max-warning into account:

Assume the following .sass-lint.yml

options:
  max-warnings: 0

I run the test with sass-lint directly:

$sass-lint  -v -q -c .sass-lint.yml elements/**/*.scss

report/report.scss
  7:3  warning  Expected `display`, found `font-family`  property-sort-order

✖ 1 problem (0 errors, 1 warning)

$ echo $?                                                             
1

Now with gulp, using the same .sass-lint.yml:

$ gulp sasslint
[14:22:22] Using gulpfile ~/report/gulpfile.js
[14:22:22] Starting 'sasslint'...
[14:22:22] Finished 'sasslint' after 9.16 ms

report/report.scss
  7:3  warning  Expected `display`, found `font-family`  property-sort-order

✖ 1 problem (0 errors, 1 warning)

$ echo $?      
0

Please advice, how to proceed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions