Skip to content

Commit

Permalink
fix for JSHINT
Browse files Browse the repository at this point in the history
  • Loading branch information
yaniswang committed Oct 25, 2015
1 parent 55464e9 commit 91fe82a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bin/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ function loadFormatters(){
var formatter =new events.EventEmitter();
formatter.getSupported = function(){
return arrSupportedFormatters;
}
};
formatter.init = function(tmpHTMLHint, tmpOptions){
HTMLHint = tmpHTMLHint;
options = tmpOptions;
}
};
formatter.setFormat = function(format){
var formatHandel = mapFormatters[format];
if(formatHandel === undefined){
console.log('No supported formatter, supported formatters: %s'.red, arrSupportedFormatters.join(', '));
process.exit(1);
}
else{
formatHandel(formatter, HTMLHint, options)
formatHandel(formatter, HTMLHint, options);
}
}
};

module.exports = formatter;
2 changes: 1 addition & 1 deletion bin/formatters/checkstyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
var xml = require('xml');

var checkstyleFormatter = function(formatter, HTMLHint, options){
var checkstyleFormatter = function(formatter){
formatter.on('end', function(event){
var arrFiles = [];
var arrAllMessages = event.arrAllMessages;
Expand Down
2 changes: 1 addition & 1 deletion bin/formatters/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2015, Yanis Wang <[email protected]>
* MIT Licensed
*/
var jsonFormatter = function(formatter, HTMLHint, options){
var jsonFormatter = function(formatter){
formatter.on('end', function(event){
console.log(JSON.stringify(event.arrAllMessages));
});
Expand Down
2 changes: 1 addition & 1 deletion bin/formatters/junit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
var xml = require('xml');

var junitFormatter = function(formatter, HTMLHint, options){
var junitFormatter = function(formatter, HTMLHint){
formatter.on('end', function(event){
var arrTestcase = [];
var arrAllMessages = event.arrAllMessages;
Expand Down
2 changes: 1 addition & 1 deletion bin/formatters/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2015, Yanis Wang <[email protected]>
* MIT Licensed
*/
var markdownFormatter = function(formatter, HTMLHint, options){
var markdownFormatter = function(formatter, HTMLHint){
formatter.on('end', function(event){
console.log('# TOC');
var arrToc = [];
Expand Down

0 comments on commit 91fe82a

Please sign in to comment.