nicwortel/coding-standard
最新稳定版本:v2.3.1
Composer 安装命令:
composer require nicwortel/coding-standard
包简介
My ruleset for PHP CodeSniffer
README 文档
README
This is my ruleset for PHP CodeSniffer. It's based on the PSR-12 Extended Coding Style, enhanced with sniffs from the Slevomat Coding Standard.
Installation
composer require --dev squizlabs/php_codesniffer nicwortel/coding-standard
Usage
Create a phpcs.xml file:
<?xml version="1.0" encoding="UTF-8"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> <arg name="basepath" value="."/> <arg name="cache" value=".phpcs-cache"/> <arg name="colors"/> <arg name="extensions" value="php"/> <!-- Show progress and sniff names --> <arg value="ps" /> <file>src/</file> <rule ref="NicWortel"/> </ruleset>
Then you can run vendor/bin/phpcs.
统计信息
- 总下载量: 6.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-11