diff --git a/tasks/sass-lint.js b/tasks/sass-lint.js index 1bd20fe..6d221ae 100755 --- a/tasks/sass-lint.js +++ b/tasks/sass-lint.js @@ -7,6 +7,7 @@ module.exports = function (grunt) { grunt.registerMultiTask('sasslint', 'Lint your Sass', function () { var opts = this.options({ + force: true, configFile: '' }); var results = []; @@ -26,7 +27,10 @@ module.exports = function (grunt) { } else { grunt.log.writeln(resultFormat); } - if (errorCount.count > 0) grunt.fail.warn(''); + + if(opts.force){ + if (errorCount.count > 0) grunt.fail.warn(''); + } } }); };