Skip to content

Commit

Permalink
add name rule for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
DragorWW committed Oct 6, 2015
1 parent 895970d commit c3da688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/htmlhint
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function hintFile(filepath, ruleset, jsonOutput){
function logPretty(filepath, messages){
console.log(filepath+':');
messages.forEach(function(hint){
console.log('\tline %d, col %d: %s', hint.line, hint.col, hint.message[hint.type === 'error'?'red':'yellow']);
console.log('\t[%s] line %d, col %d: %s', hint.rule.id.green, hint.line, hint.col, hint.message[hint.type === 'error'?'red':'yellow']);
});
console.log('');
}
Expand Down

0 comments on commit c3da688

Please sign in to comment.