From 2dbc7e087fe0f876085a7d519d5dc261f1a7e2af Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 25 Sep 2019 14:01:51 +0000 Subject: [PATCH] Build/Test Tools: Move Composer script command line directives to the PHPCS ruleset. Also, move all arguments up to the top of the custom ruleset to make it easier to understand the conditions the ruleset is run under. Props desrosj, jrf. See #46152. git-svn-id: https://develop.svn.wordpress.org/trunk@46291 602fd350-edb4-49c9-b593-d223f7449a82 --- composer.json | 4 ++-- phpcs.xml.dist | 36 +++++++++++++++++++++++------------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/composer.json b/composer.json index 1e0a2b383f..3b41e26efc 100644 --- a/composer.json +++ b/composer.json @@ -19,8 +19,8 @@ }, "scripts": { "compat": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --standard=phpcompat.xml.dist --report=summary,source", - "format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source --cache -d memory_limit=256M", - "lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source --cache -d memory_limit=256M", + "format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source", + "lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source", "lint:errors": "@lint -n" } } diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 82f21d12c2..4c9720b8ab 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -2,6 +2,29 @@ Apply WordPress Coding Standards to all Core files + + + + + + + + + + + + + + + + + + + . + @@ -76,19 +99,6 @@ - - - - - - - - - - - - . - ^build/*