Skip to content

Commit

Permalink
Merge pull request #10 from kazu69/add_error_report_file_path
Browse files Browse the repository at this point in the history
add error report with file path
  • Loading branch information
kazu69 authored Oct 18, 2016
2 parents c0370ce + 025cdff commit e14e602
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit e14e602

Please sign in to comment.