1- /*global module:false*/
1+ /* jshint evil:true, node:true */
2+
23module . exports = function ( grunt ) {
34
45 // Project configuration.
@@ -221,11 +222,9 @@ module.exports = function(grunt) {
221222
222223 //Run the YUITest suite
223224 grunt . registerMultiTask ( "yuitest" , "Run the YUITests for the project" , function ( ) {
224- /*jshint evil:true, node:true*/
225225
226- var start = Date . now ( ) ;
227226 var YUITest = require ( "yuitest" ) ;
228- var CSSLint = require ( "./build/csslint-node" ) . CSSLint ;
227+ var CSSLint = require ( "./build/csslint-node" ) . CSSLint ; // jshint ignore:line
229228 var files = this . filesSrc ;
230229 var TestRunner = YUITest . TestRunner ;
231230 var done = this . async ( ) ;
@@ -375,7 +374,7 @@ module.exports = function(grunt) {
375374 grunt . util . spawn ( {
376375 cmd : "git" ,
377376 args : [ "tag" ]
378- } , function ( error , result , code ) {
377+ } , function ( error , result ) {
379378 //Find the latest git tag
380379 var tags = result . stdout . split ( "\n" ) ,
381380 semver = tags [ 0 ] . replace ( "v" , "" ) . split ( "." ) ,
@@ -386,7 +385,7 @@ module.exports = function(grunt) {
386385 //A simple array sort can't be used because of the comparison of
387386 //the strings "0.9.9" > "0.9.10"
388387 for ( var i = 1 , len = tags . length ; i < len ; i ++ ) {
389- semver = tags [ i ] . replace ( "v" , "" ) . split ( "." ) ;
388+ semver = tags [ i ] . replace ( "v" , "" ) . split ( "." ) ;
390389
391390 var currentMajor = parseInt ( semver [ 0 ] , 10 ) ;
392391 if ( currentMajor < major ) {
@@ -418,7 +417,7 @@ module.exports = function(grunt) {
418417 grunt . util . spawn ( {
419418 cmd : "git" ,
420419 args : [ "log" , "--pretty=format:'* %s (%an)'" , lastTag + "..HEAD" ]
421- } , function ( error , result , code ) {
420+ } , function ( error , result ) {
422421 var prettyPrint = result . stdout . split ( "'\n'" ) . join ( "\n" ) . replace ( / \" $ / , "" ) . replace ( / ^ \" / , "" ) ;
423422
424423 grunt . verbose . writeln ( ) . write ( prettyPrint ) . writeln ( ) ;
@@ -446,7 +445,7 @@ module.exports = function(grunt) {
446445 cmd : "java" ,
447446 args : [ "-jar" , "lib/js.jar" , "lib/yuitest-rhino-cli.js" , "build/csslint.js" , filepath ] ,
448447 opts : { stdio : "inherit" }
449- } , function ( error , result , code ) {
448+ } , function ( ) {
450449 progress -- ;
451450 if ( progress === 0 ) {
452451 done ( ) ;
0 commit comments