jakubzapletal / php_codesniffer-rules
Library of modified PSR rules for PHP_CodeSniffer
Installs: 2 735
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
This package is not auto-updated.
Last update: 2024-10-26 17:19:05 UTC
README
This is a simple library of modified PSR rules for PHP_CodeSniffer.
Installation
Composer
If you don't have Composer install it:
$ curl -s https://getcomposer.org/installer | php
Add jakubzapletal/php_codesniffer-rules
to composer.json
:
$ composer require --dev jakubzapletal/php_codesniffer-rules ~0.1
Usage
PSR2 without camel case method name
Sometimes it is a coding convention to write method names with an underscore in test classes. In this case you can still keep checking PSR-2 standard thanks to ruleset below.
$ vendor/bin/phpcs --standard=vendor/jakubzapletal/php_codesniffer-rules/psr2-without-camel-case-method-name.xml </PATH/TO/TESTED/FOLDER>