myonlinestore/coding-standard
最新稳定版本:4.0.3
Composer 安装命令:
composer require myonlinestore/coding-standard
包简介
MyOnlineStore Coding Standard
README 文档
README
Install
Install the package with composer:
composer require myonlinestore/coding-standard --dev
Configure
Add the ruleset to your phpcs.xml.dist file:
<?xml version="1.0"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd" > <arg name="basepath" value="."/> <arg name="extensions" value="php"/> <arg name="parallel" value="80"/> <arg name="cache" value=".phpcs-cache"/> <arg name="colors"/> <arg value="nps"/> <file>src</file> <file>tests</file> <rule ref="MyOnlineStore"/> </ruleset>
Unused Doctrine fields
If your code has entities with fields without accessors, you could disable the unused elements inspection:
<rule ref="MyOnlineStore"> <exclude name="SlevomatCodingStandard.Classes.UnusedPrivateElements"/> </rule>
统计信息
- 总下载量: 189.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 14
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-11