gulp-rb-validate-css
Advanced tools
Comparing version 0.0.2 to 0.0.3
43
index.js
@@ -32,3 +32,3 @@ /*jslint node: true*/ | ||
if (abort) { | ||
gutil.log('[' + guideline + '] ' + gutil.colors.white(tag + ": ") + gutil.colors.red(mistake)); | ||
gutil.log('[' + guideline + '] ' + gutil.colors.white(tag + ": ") + gutil.colors.red(mistake) + " [FAIL]"); | ||
errorBreak = true; | ||
@@ -352,25 +352,30 @@ } else { | ||
var nocomments = removeSingleComments(stripCssComments(str, { | ||
preserve: false | ||
})), | ||
nosinglecomments = removeSingleComments(str); | ||
if (!str) { | ||
validationError('', 'File is empty or null', 'WARNING', false); | ||
} else { | ||
checkNames(nocomments); | ||
checkLineWidth(nosinglecomments, options.linewidth); | ||
checkSingleStatement(nocomments); | ||
var nocomments = removeSingleComments(stripCssComments(str, { | ||
preserve: false | ||
})), | ||
nosinglecomments = removeSingleComments(str); | ||
if (options.checkremote) { | ||
checkRemote(nocomments); | ||
} | ||
checkNames(nocomments); | ||
checkLineWidth(nosinglecomments, options.linewidth); | ||
checkSingleStatement(nocomments); | ||
if (options.checkimportant) { | ||
checkImportant(nocomments); | ||
} | ||
if (options.checkremote) { | ||
checkRemote(nocomments); | ||
} | ||
if (options.forcerem) { | ||
checkEmFonts(nocomments); | ||
} | ||
if (options.checkimportant) { | ||
checkImportant(nocomments); | ||
} | ||
if (options.checkindent) { | ||
checkIndentation(str, options.indent); | ||
if (options.forcerem) { | ||
checkEmFonts(nocomments); | ||
} | ||
if (options.checkindent) { | ||
checkIndentation(str, options.indent); | ||
} | ||
} | ||
@@ -377,0 +382,0 @@ |
{ | ||
"name": "gulp-rb-validate-css", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Gulp plugin to validate css files according to web frontend guidelines", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13599
317