diff --git a/tasks/phpcs.js b/tasks/phpcs.js index 5a5d079..abe0da0 100644 --- a/tasks/phpcs.js +++ b/tasks/phpcs.js @@ -47,7 +47,10 @@ module.exports = function(grunt) { files = files.filter(function(file, position) { return !position || file !== files[position - 1]; }); - + + // If --report-file is false PHPCS does not output anything. + if (!options.reportFile) delete options.reportFile; + // generates parameters parameters = Object.keys(options).map(function(option) { return option in command.flags && options[option] === true ? @@ -70,4 +73,4 @@ module.exports = function(grunt) { done(error); }); }); -}; \ No newline at end of file +};