nepada / coding-standard
Nepada 编码规范。
v7.14.0
2023-12-16 20:25 UTC
Requires
- php: >=7.4.0
- slevomat/coding-standard: ^8.14.1
- squizlabs/php_codesniffer: ^3.8.0
- dev-master
- v7.14.0
- v7.13.0
- v7.12.0
- v7.11.0
- v7.10.0
- v7.9.0
- v7.8.0
- v7.7.0
- v7.6.0
- v7.5.2
- v7.5.1
- v7.5.0
- v7.4.4
- v7.4.3
- v7.4.2
- v7.4.1
- v7.4.0
- v7.3.0
- v7.2.1
- v7.2.0
- v7.1.1
- v7.1.0
- v7.0.1
- v7.0.0
- 6.4.x-dev
- v6.4.0
- v6.3.0
- v6.2.0
- v6.1.0
- v6.0.0
- v5.6.0
- v5.5.0
- v5.4.0
- v5.3.0
- v5.2.0
- v5.1.0
- v5.0.2
- v5.0.1
- v5.0.0
- v4.2.0
- v4.1.0
- v4.0.1
- v4.0.0
- v3.0.1
- v3.0.0
- v2.0.0
- v1.0.1
- v1.0.0
This package is auto-updated.
Last update: 2024-09-16 21:56:13 UTC
README
基于 Consistence - Coding Standard 和 Slevomat - Coding Standard。
安装
通过 Composer
$ composer require nepada/coding-standard
使用
您可以直接使用规则集,也可以根据需要自定义
<?xml version="1.0"?> <ruleset> <config name="installed_paths" value="../../nepada/coding-standard/src"/><!-- relative path from PHPCS source location --> <arg value="ps"/><!-- show progress of the run, show sniff names --> <arg name="cache" value=".phpcs-cache"/> <file>src</file> <file>tests</file> <rule ref="Nepada"> </rule> </ruleset>
要检查您的代码库中的违规行为,请从命令行运行 PHP CodeSniffer
vendor/bin/phpcs