From e9fa1f03239a5b7851e3e8a61d6d5e1422b352c4 Mon Sep 17 00:00:00 2001 From: Tony Cabaye Date: Tue, 9 Jun 2015 15:17:46 +0200 Subject: [PATCH] Fixes #44 --- tasks/phpcs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/phpcs.js b/tasks/phpcs.js index 5a5d079..819a95a 100644 --- a/tasks/phpcs.js +++ b/tasks/phpcs.js @@ -48,6 +48,10 @@ module.exports = function(grunt) { return !position || file !== files[position - 1]; }); + if (files.length === 0) { + return console.log("No Files specified"); + } + // generates parameters parameters = Object.keys(options).map(function(option) { return option in command.flags && options[option] === true ?