Skip to content

Commit

Permalink
add:
Browse files Browse the repository at this point in the history
1. add ruleid to csslint message

fix:

1. fix csslint rule: del undefined of raw
  • Loading branch information
yaniswang committed Apr 8, 2013
1 parent 6b647bf commit eed840c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
HTMLHint change log
====================

## ver 0.9.3 (2013-4-8)

add:

1. add ruleid to csslint message

fix:

1. fix csslint rule: del undefined of raw

## ver 0.9.2 (2013-4-6)

add:
Expand Down
2 changes: 1 addition & 1 deletion bin/htmlhint
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ program.on('--help', function(){
});

program
.version('0.9.2')
.version('0.9.3')
.usage('[options] <file ...>')
.option('-l, --list', 'show all of the rules available.')
.option('-c, --config <file>', 'custom configuration file.')
Expand Down
2 changes: 1 addition & 1 deletion coverage.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/htmlhint.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "htmlhint",
"version": "0.9.2",
"version": "0.9.3",
"description": "A Static Code Analysis Tool for HTML",
"main": "./index",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/rules/csslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ HTMLHint.addRule({
var messages = cssVerify(event.raw, options).messages;
messages.forEach(function(error){
var line = error.line;
reporter[error.type==='warning'?'warn':'error'](error.message, styleLine + line, (line === 1 ? styleCol : 0) + error.col, self, error.evidence);
reporter[error.type==='warning'?'warn':'error']('['+error.rule+'] '+error.message, styleLine + line, (line === 1 ? styleCol : 0) + error.col, self, '');
});
}
catch(e){}
Expand Down

0 comments on commit eed840c

Please sign in to comment.