kamelot / code-sniffer
Ruleset for phpcodesniffer. (C'est mon premier package composer. C'est mon premier gitflow. C'est mon premier Ruleset. Tout feedback est bien venu
Installs: 14 763
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 4
Requires
- php: >=7.0
- squizlabs/php_codesniffer: ^3.1.1
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is not auto-updated.
Last update: 2024-11-13 04:15:34 UTC
README
Some custom PHP codesniffer rules
https://packagist.org/packages/kamelot/code-sniffer
Rule List
@todo would include a ticket/issue id
Examples
Using report:
vendor/bin/phpcs --standard=standard/Kamelot/ruleset.xml --extensions=php \ --encoding=utf-8 -n tests/Kamelot/ok/ --colors
Default usage
vendor/bin/phpcs --standard=standard/Kamelot/ruleset.xml --extensions=php \ --encoding=utf-8 -n src --colors
Testing code
Run commands
Checking if everything is wrong :-)
vendor/bin/phpcs --standard=standard/Kamelot/ruleset.xml \ --extensions=php --encoding=utf-8 -n tests/Kamelot/errors
Checking if everything is OK
vendor/bin/phpcs --standard=standard/Kamelot/ruleset.xml \ --extensions=php --encoding=utf-8 -n tests/Kamelot/ok
PhpUnit
You can do that through phpunit now
vendor/bin/phpunit
Installation
Installation through Composer
composer require kamelot/CodeSniffer