diff --git a/.jshintrc b/.jshintrc index 6b4c1a9..b87cb35 100644 --- a/.jshintrc +++ b/.jshintrc @@ -10,5 +10,5 @@ "boss": true, "eqnull": true, "node": true, - "es5": true + "es5": false } diff --git a/Gruntfile.js b/Gruntfile.js index 4c3eb17..302c8c7 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -14,16 +14,10 @@ module.exports = function(grunt) { grunt.initConfig({ jshint : { - all : [ 'Gruntfile.js', 'tasks/*.js', '<%= nodeunit.tests %>', ], + all : [ 'Gruntfile.js', 'tasks/*.js', 'test/*.js', ], options : { - globalstrict : true, - globals : { - console : true, - exports : true, - module : true, - require : true - } - }, + jshintrc : '.jshintrc', + } }, // Before generating any new files, remove any previously-created files. diff --git a/tasks/phpdocumentor.js b/tasks/phpdocumentor.js index c1d349f..b1f757d 100644 --- a/tasks/phpdocumentor.js +++ b/tasks/phpdocumentor.js @@ -17,6 +17,7 @@ module.exports = function(grunt) { // creation: http://gruntjs.com/creating-tasks grunt.registerMultiTask('phpdocumentor', 'Runs the PHPDocumentor documentation generator tool.', function() { + // This function setup the plugin, it create a string which represents the phpDocumentor command line to execute phpDocumentor.setup(this); // This function first checks if PHP is available on command line and the executes phpDocumentor