From 6cc22fbb3b80bcd902a6b83d97dee1da746653f6 Mon Sep 17 00:00:00 2001 From: kazu69 Date: Tue, 18 Oct 2016 14:47:23 +0900 Subject: [PATCH 1/2] add error report with file path --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6b6f3f0..0f9d37b 100644 --- a/index.js +++ b/index.js @@ -143,7 +143,7 @@ gulpHtmlhintInline.defaultReporter = function(file) { if(report.success) { log(color.green(file.path + ' lint free.')); } if(!report.success) { - log(color.cyan(report.length) + ' error' + (report.length === 1 ? '' : 's') + ' found'); + log(color.cyan(report.length) + ' error' + (report.length === 1 ? '' : 's') + ' found at ' + color.gray(file.path)); report.forEach(function(message) { var evidence = message.evidence, @@ -176,7 +176,7 @@ gulpHtmlhintInline.failReporter = function() { (fails = fails || []).push(file.path); if(file.htmlhint_inline && file.htmlhint_inline.length !== 0) { - error = new PluginError(PLUGIN_NAME, { + error = new PluginError(PLUGIN_NAME, { message: PLUGIN_NAME + ' failed for: ' + fails.join(', '), showStack: false }); From 025cdff8a8314a205d02d155b51952819a57f962 Mon Sep 17 00:00:00 2001 From: kazu69 Date: Tue, 18 Oct 2016 15:13:25 +0900 Subject: [PATCH 2/2] bump up v0.0.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 797076b..5cd6c06 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "gulp-htmlhint-inline", "description": "Gulp plugin for linting inline html", - "version": "0.0.6", + "version": "0.0.7", "homepage": "https://github.com/kazu69/gulp-htmlhint-inline", "main": "index.js", "author": {