From fbbd2ff7ef5e39ca73df01f5cc02b747efc739ad Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Tue, 30 Apr 2019 16:59:44 -0400 Subject: [PATCH] Make standards easier to install. Set smarter defaults and ignore a few things that aren't important when not working on core. --- WPScholar/ruleset.xml | 34 ++++++++++++++++++++++++---------- composer.json | 5 +++-- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/WPScholar/ruleset.xml b/WPScholar/ruleset.xml index feb188c..df408b2 100644 --- a/WPScholar/ruleset.xml +++ b/WPScholar/ruleset.xml @@ -2,7 +2,15 @@ The WP Scholar PHP Code Sniffer standard. - + + + + + + + + + */phpunit.xml* */languages/* @@ -32,12 +40,11 @@ 0 - - - - - + + + + @@ -56,10 +63,16 @@ - - - + + + + + + + + + @@ -72,5 +85,6 @@ - + + diff --git a/composer.json b/composer.json index 1353c8f..56d298e 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "wpscholar/phpcs-standards-wpscholar", "description": "PHP Code Sniffer Standards for WP Scholar", - "type": "phpcs-standards", + "type": "phpcodesniffer-standard", "license": "GPL-2.0-or-later", "authors": [ { @@ -13,6 +13,7 @@ "squizlabs/php_codesniffer": "@stable", "phpcompatibility/php-compatibility": "@stable", "wp-coding-standards/wpcs": "@stable", - "wpscholar/phpcs-standards-installer": "@stable" + "dealerdirect/phpcodesniffer-composer-installer": "@stable", + "phpcompatibility/phpcompatibility-wp": "@stable" } }