'use strict';
var path = require('path'),
		lint = require('sass-lint');

module.exports = function (grunt) {
	grunt.verbose.writeln('\n' + lint.info + '\n');

	grunt.registerMultiTask('sasslint', 'Lint your Sass', function () {
		var opts = this.options({
					configFile: ''
				}),
				results = lint.lintFiles(this.data[0], opts, opts.configFile),
				failResultCount = lint.resultCount(results),
				resultFormat = lint.format(results);


		if (failResultCount > 0) {
			grunt.fail.warn('');

		} else {
			grunt.log.writeln(resultFormat);
		}
	});
};

@@ -35,17 +35,16 @@
 path'),%0A
-%09
 %09lint = 
@@ -253,17 +253,16 @@
 s(%7B%0A%09%09%09%09
-%09
 configFi
@@ -275,14 +275,12 @@
 %0A%09%09%09
-%09
 %7D),%0A
-%09
 %09%09%09r
@@ -344,17 +344,16 @@
 le),%0A%09%09%09
-%09
 failResu
@@ -389,17 +389,16 @@
 sults),%0A
-%09
 %09%09%09resul
@@ -473,44 +473,8 @@
 unt.
-fail.warn('');%0A%0A%09%09%7D else %7B%0A%09%09%09grunt.
 log.
@@ -493,16 +493,40 @@
 ltFormat
+);%0A%09%09%09grunt.fail.warn(''
 );%0A%09%09%7D%0A%09

print output on fail linter