summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreffulgentsia2017-11-10 11:38:05 -0800
committereffulgentsia2017-11-10 11:38:05 -0800
commit40fb0c8b747bcbf4674e72964c56f10efc5aba11 (patch)
tree4abb30874af0d27574bff894d26f157bcbd78559
parent754883a074258b60f3585e9b286da7d47f7325a0 (diff)
Issue #2886279 by dawehner, alexpott, drpal, zaporylie, Wim Leers, neclimdul, Mile23, Chi: Add PHPCS and PHPCBF as Composer scripts
-rw-r--r--composer.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/composer.json b/composer.json
index 97c131f..71dcc96 100644
--- a/composer.json
+++ b/composer.json
@@ -53,7 +53,9 @@
"Drupal\\Core\\Composer\\Composer::ensureHtaccess"
],
"post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
- "post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup"
+ "post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
+ "phpcs": "phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --",
+ "phpcbf": "phpcbf --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --"
},
"repositories": [
{