Skip to content

Commit

Permalink
Merge pull request #74 from DragorWW/feature/name_rule
Browse files Browse the repository at this point in the history
add name rule for cli
  • Loading branch information
yaniswang committed Oct 6, 2015
2 parents 09ae821 + c3da688 commit 2cfad65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/htmlhint
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 2cfad65

Please sign in to comment.