From cdac268f87ce48e6238b299cb45707e13136c8a1 Mon Sep 17 00:00:00 2001 From: Matthew Grasmick Date: Tue, 13 Jun 2017 13:35:27 -0400 Subject: [PATCH 1/3] Fixes #1657: PHP shebang echoed during commit message validation. --- bin/blt | 80 +++--------------------------------- bin/blt-robo | 11 ----- bin/blt-robo.php | 80 ++++++++++++++++++++++++++++++++++++ scripts/git-hooks/commit-msg | 5 ++- scripts/git-hooks/pre-commit | 1 + src/Robo/BltTasks.php | 2 +- 6 files changed, 90 insertions(+), 89 deletions(-) delete mode 100755 bin/blt-robo create mode 100755 bin/blt-robo.php diff --git a/bin/blt b/bin/blt index 0c5d43c0b..9c587fa73 100755 --- a/bin/blt +++ b/bin/blt @@ -1,81 +1,11 @@ #!/usr/bin/env php say("Skipped $hook target hook. No hook is defined."); + $this->logger->info("Skipped $hook target hook. No hook is defined."); return 0; } From f30a536a7a61630a1065a59281cf2d66aee0769d Mon Sep 17 00:00:00 2001 From: Matthew Grasmick Date: Tue, 13 Jun 2017 13:49:51 -0400 Subject: [PATCH 2/3] Remove scan on blt-robo file. --- RoboFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RoboFile.php b/RoboFile.php index fb4cf3209..1e6c86385 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -31,7 +31,7 @@ public function initialize() { $this->drupalPhpcsStandard = $this->bltRoot . '/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml'; $this->phpcsPaths = [ $this->bltRoot . '/bin/blt', - $this->bltRoot . '/bin/blt-robo', + $this->bltRoot . '/bin/blt-robo.php', $this->bltRoot . '/bin/blt-robo-run.php', $this->bltRoot . '/RoboFile.php', $this->bltRoot . '/src/Robo', From a5c590c5a914a1a0ec35c21d3b1bdd761bff2641 Mon Sep 17 00:00:00 2001 From: Matthew Grasmick Date: Tue, 13 Jun 2017 14:12:06 -0400 Subject: [PATCH 3/3] PHPCS fixes. --- bin/blt-robo.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/blt-robo.php b/bin/blt-robo.php index 935446f9e..f7eafab45 100755 --- a/bin/blt-robo.php +++ b/bin/blt-robo.php @@ -1,4 +1,5 @@