karen-nalbandian-wub / wanup-coding-standard
odeSniffer ruleset for the Symfony2+ coding standard (Wanup flavor)
Installs: 389
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:coding-standard
pkg:composer/karen-nalbandian-wub/wanup-coding-standard
Requires
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is not auto-updated.
Last update: 2018-03-06 09:08:47 UTC
README
Symfony2+ PHP CodeSniffer Coding Standard (Wanup flavor)
A coding standard to check against the Symfony coding standards, based on excellent escapestudios/symfony2-coding-standard repository.
Differences
The following standards has been modified:
- added the Wanup.Commenting.FunctionComment.MissingParamType
- removed the "Wanup".Commenting.FunctionComment.SpacingAfterParamType
- removed the Squiz.Strings.ConcatenationSpacing.PaddingFound
Installation
Composer
This standard can be installed with the Composer dependency manager.
-
Install the coding standard as a dependency of your project
composer require --dev karen-nalbandian-wub/wanup-coding-standard:dev-master -
Add the coding standard to the PHP_CodeSniffer install path
vendor/bin/phpcs --config-set installed_paths vendor/karen-nalbandian-wub/wanup-coding-standard -
Check the installed coding standards for "Wanup"
vendor/bin/phpcs -i -
Done!
vendor/bin/phpcs /path/to/code
### Stand-alone
-
Install PHP_CodeSniffer
-
Checkout this repository
git clone https://github.com/karen-nalbandian-wub/wanup-coding-standard.git -
Add the coding standard to the PHP_CodeSniffer install path
phpcs --config-set installed_paths /path/to/wanup-coding-standardOr copy/symlink this repository's "Wanup"-folder inside the phpcs
Standardsdirectory -
Check the installed coding standards for "Wanup"
phpcs -i -
Done!
phpcs /path/to/code