kamelot/code-sniffer
最新稳定版本:0.2.2
Composer 安装命令:
composer require 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
README 文档
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
统计信息
- 总下载量: 15.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2017-10-01