From 82fc3478f93b8cc13ca0957ade9435924e1bf14f Mon Sep 17 00:00:00 2001 From: Yousan_O Date: Sun, 3 Jun 2018 13:51:59 +0900 Subject: [PATCH 1/3] Add test case to fail --- features/scaffold.feature | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/features/scaffold.feature b/features/scaffold.feature index d170ead74..a13672c49 100644 --- a/features/scaffold.feature +++ b/features/scaffold.feature @@ -224,6 +224,11 @@ Feature: WordPress code scaffolding .git .gitignore """ + And the {PLUGIN_DIR}/hello-world/phpcs.xml.dist file should contain: + """ + + + """ And the {PLUGIN_DIR}/hello-world/hello-world.php file should contain: """ * Plugin Name: Hello World From de660c8d5aeae5413554a12256ce08f39309d480 Mon Sep 17 00:00:00 2001 From: Yousan_O Date: Sun, 3 Jun 2018 14:00:44 +0900 Subject: [PATCH 2/3] add PHP CS 5.3 upwards --- templates/phpcs.xml.dist | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/phpcs.xml.dist b/templates/phpcs.xml.dist index 4f1d0e5cf..897f897c4 100644 --- a/templates/phpcs.xml.dist +++ b/templates/phpcs.xml.dist @@ -2,6 +2,9 @@ Generally-applicable sniffs for WordPress plugins + + + From eaf6f9e8d0459388c62d485a238c77826b103b59 Mon Sep 17 00:00:00 2001 From: Yousan_O Date: Sun, 3 Jun 2018 14:57:31 +0900 Subject: [PATCH 3/3] Fixed indent --- features/scaffold.feature | 4 ++-- templates/phpcs.xml.dist | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/scaffold.feature b/features/scaffold.feature index a13672c49..242c6a7b2 100644 --- a/features/scaffold.feature +++ b/features/scaffold.feature @@ -226,8 +226,8 @@ Feature: WordPress code scaffolding """ And the {PLUGIN_DIR}/hello-world/phpcs.xml.dist file should contain: """ - - + + """ And the {PLUGIN_DIR}/hello-world/hello-world.php file should contain: """ diff --git a/templates/phpcs.xml.dist b/templates/phpcs.xml.dist index 897f897c4..7044659a0 100644 --- a/templates/phpcs.xml.dist +++ b/templates/phpcs.xml.dist @@ -2,8 +2,8 @@ Generally-applicable sniffs for WordPress plugins - - + +