diff --git a/composer.json b/composer.json index 8b19715..798bb5e 100644 --- a/composer.json +++ b/composer.json @@ -15,10 +15,11 @@ }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", - "wp-coding-standards/wpcs": "^2.1" + "wp-coding-standards/wpcs": "^2.1", + "phpcompatibility/php-compatibility": "^9.2" }, "scripts": { - "test": ["phpcs"], - "fix": ["phpcbf"] + "test": ["vendor/bin/phpcs"], + "fix": ["vendor/bin/phpcbf"] } } diff --git a/composer.lock b/composer.lock index 0a08534..2441126 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6f047956cbb4861fde466b775966f717", + "content-hash": "6e38e340aaa610ed48211f151263555e", "packages": [ { "name": "composer/installers", @@ -194,6 +194,64 @@ ], "time": "2018-10-26T13:21:45+00:00" }, + { + "name": "phpcompatibility/php-compatibility", + "version": "9.2.0", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", + "reference": "3db1bf1e28123fd574a4ae2e9a84072826d51b5e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/3db1bf1e28123fd574a4ae2e9a84072826d51b5e", + "reference": "3db1bf1e28123fd574a4ae2e9a84072826d51b5e", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" + }, + "conflict": { + "squizlabs/php_codesniffer": "2.6.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Contributors", + "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" + }, + { + "name": "Wim Godden", + "homepage": "https://github.com/wimg", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + } + ], + "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", + "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", + "keywords": [ + "compatibility", + "phpcs", + "standards" + ], + "time": "2019-06-27T19:58:56+00:00" + }, { "name": "squizlabs/php_codesniffer", "version": "3.4.2", @@ -250,12 +308,12 @@ "version": "2.1.1", "source": { "type": "git", - "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git", + "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", "reference": "bd9c33152115e6741e3510ff7189605b35167908" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/bd9c33152115e6741e3510ff7189605b35167908", + "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/bd9c33152115e6741e3510ff7189605b35167908", "reference": "bd9c33152115e6741e3510ff7189605b35167908", "shasum": "" }, diff --git a/phpcs.xml b/phpcs.xml index 73bde8a..3d04969 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,10 +1,17 @@ - - - + - A custom set of code standard rules to check for WordPress themes. + A custom set of code standard rules for UnderStrap. + + + + + + + + + @@ -13,31 +20,86 @@ . - ./vendor + */vendor/* + */node_modules/* - - + + + + + + + + + + + + - - + + + - - - - - - - - - - - - - + + + + + + + + + + - - 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +