Skip to content

Commit

Permalink
Run Jakefile through hinting along with all other application, server…
Browse files Browse the repository at this point in the history
…, system and unit js files
  • Loading branch information
rwaldron committed Sep 11, 2011
1 parent a412c2e commit bc88262
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Jakefile.js
Expand Up @@ -11,13 +11,16 @@ spawn = cp.spawn,
assert = require("assert"),
child;


// Contants
FILES = {
vendor: [

],
application: [

],
system: [
"Jakefile.js"
],
// server: [
// "proxy/index.js"
Expand All @@ -27,14 +30,14 @@ FILES = {
]
};

JS_DIR = "js/";

DIR = "js/";

HINTABLES = [ "application", "server", "unit" ];
HINTABLES = [ "application", "server", "unit", "system" ];

HINTS = {
// `data: true` can be used by us to output information collected and available via jshint.data()
application: { unused: true, unuseds: true, devel: true, undef: true, noempty: true, evil: true, forin: false, maxerr: 100 },
system: { devel: true, noempty: true, evil: true, forin: false, maxerr: 100 },
server: { devel: true, noempty: true, evil: true, forin: false, maxerr: 100 },
unit: { devel: true, evil: true, forin: false, maxerr: 100 }
};
Expand Down Expand Up @@ -140,14 +143,15 @@ task( "hint", [], function( params ) {
!SILENT && print( "\n " + set + ": \n" );

files[ set ].forEach(function( file, i ) {

hintFile( file, hints[ set ], set );

count++;
});
}

if ( HINTABLES.length - 1 === i ) {
print("Complete: " + count + " files hinted\n");
print("\nComplete: " + count + " files hinted\n");
}
});
});
Expand All @@ -159,7 +163,6 @@ task( "socket", [ ], function() {
// Placeholder
spawn( "node", [ "socket/socket.js" ] );


} catch( ex ) {
console.log( ex.toString() );
}
Expand Down

0 comments on commit bc88262

Please sign in to comment.