gulp-lintspaces
Advanced tools
Comparing version 0.3.3 to 0.3.4
16
index.js
@@ -5,2 +5,3 @@ var | ||
PluginError = require('gulp-util').PluginError, | ||
log = require('gulp-util').log, | ||
colors = require('gulp-util').colors | ||
@@ -36,8 +37,9 @@ ; | ||
file.lintspaces[line].forEach(function(error) { | ||
console.error( | ||
'[%s] %s in (%s:%d)\n', | ||
colors.green('gulp-lintspaces'), | ||
colors.red(error.message), | ||
file.path, | ||
line | ||
log( | ||
'gulp-lintspaces', | ||
[ | ||
colors.red(error.message), | ||
'in', | ||
file.path + ':' + line | ||
].join(' ') | ||
); | ||
@@ -49,3 +51,3 @@ }); | ||
if (Object.keys(file.lintspaces).length) { | ||
this.emit('error', new PluginError("lint-spaces", "Failed linting spaces")); | ||
this.emit('error', new PluginError("gulp-lintspaces", "Found spacing errors")); | ||
} | ||
@@ -52,0 +54,0 @@ |
{ | ||
"name": "gulp-lintspaces", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "gulp plugin for lintspaces", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
15492
350