Validate <code>.scss</code> files with <code>scss-lint</code>.
This plugin requires Grunt
>= 0.4.0 and scss-lint
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-scss-lint --save-dev
Run this task with the
grunt scsslint command.
This task requires you to have Ruby, and scss-lint installed. If you're on OS X or Linux you probably already have Ruby installed; test with
ruby -v in your terminal. When you've confirmed you have Ruby installed, run
gem update --system && gem install scss-lint to install the
You can choose to have your gems installed via bundler and if so, set this option to
true to use the local gems.
Get some nice looking output.
gem install windows-pr win32console
Group related linted files for more easier error review. XML output will still be default from scss-lint.
Specify a configuration file.
Specify a gem version for the scsslint gem.
Exclude one or more files from being linted.
The jUnit XML file to save the output to. If you don't want this then set the option as
Emits a Grunt event on scss-lint error called
Emits a Grunt event on scss-lint success called
true to report scss-lint errors but not fail the task.
300 * 1024
maxBuffer for the
child_process.exec process, if you're linting a lot of files and you're recieving no output then you can try and increase this value. Setting it to
Infinite will not return any
stderr and the task will think that everything's fine.
If you're having problems with the task exiting with an error code, then have a look here: https://github.com/causes/scss-lint/blob/master/lib/scss_lint/cli.rb