mnapoli/hard-mode
最新稳定版本:0.3.0
Composer 安装命令:
composer require mnapoli/hard-mode
包简介
Hard mode for PHP
README 文档
README
composer require --dev mnapoli/hard-mode
Then write a .phpcs.xml.dist file:
<?xml version="1.0"?> <ruleset> <arg name="basepath" value="."/> <file>src</file> <file>tests</file> <rule ref="HardMode"/> </ruleset>
Then run the analysis:
vendor/bin/phpcs
Or using pretty:
vendor/bin/pretty
Fixing errors
Run:
vendor/bin/phpcbf
Or using pretty:
vendor/bin/pretty fix
Advanced configuration
Check out the PHP CodeSniffer documentation for all the options. You will find below documentation for common scenarios.
To exclude some files from the analysis:
<exclude-pattern>tests/Fixtures</exclude-pattern>
On large projects you may want to use PHP CodeSniffer's cache:
<arg name="cache" value=".phpcs-cache"/>
Remember to add .phpcs-cache to .gitignore.
统计信息
- 总下载量: 58.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 1
- 依赖项目数: 23
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-20