cryonighter/cryonighter-coding-standard
Composer 安装命令:
composer require cryonighter/cryonighter-coding-standard
包简介
CodeSniffer ruleset for the cryonighter coding standard
关键字:
README 文档
README
A coding standard to check against the cryonighter coding standards, originally shamelessly copied from the -disappeared- opensky/Symfony2-coding-standard repository.
Installation via Composer
This standard can be installed with the Composer dependency manager.
-
Install the coding standard as a dependency of your project
composer global require cryonighter/cryonighter-coding-standard -
Add the coding standard to the PHP_CodeSniffer install path
phpcs --config-set installed_paths ../../../vendor/escapestudios/symfony2-coding-standard,../../../vendor/cryonighter/cryonighter-coding-standard -
Check the installed coding standards for "Symfony" and "Cryonighter"
phpcs -i
Installation Stand-alone
-
Install PHP_CodeSniffer
-
Checkout this repositories
git clone git://github.com/djoos/Symfony2-coding-standard.git symfony2-coding-standard && git clone git@github.com:cryonighter/cryonighter-coding-standard.git -
Add the coding standard to the PHP_CodeSniffer install path
phpcs --config-set installed_paths /path/to/symfony2-coding-standard,/path/to/cryonighter-coding-standardOr move/copy/symlink repositories
SymfonyandCryonighterfolders inside the phpcsStandardsdirectory -
Check the installed coding standards for "Symfony" and "Cryonighter"
phpcs -i
Usage
Via command line
phpcs --standard=Cryonighter --extensions=php --ignore=/path/to/exclude-code /path/to/code
PHP Code Sniffer Wiki: usage, advanced usage
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-25