soy-php/phpcs-task
Composer 安装命令:
composer require soy-php/phpcs-task
包简介
PHP Code Sniffer task for Soy
README 文档
README
Introduction
This is a PHP Code Sniffer task for Soy
Usage
Include soy-php/phpcs-task in your project with composer:
$ composer require soy-php/phpcs-task
Then in your recipe you can use the task as follows:
<?php $recipe = new \Soy\Recipe(); $recipe->component('default', function (\Soy\PhpCodeSniffer\RunTask $codeSnifferTask) { $codeSnifferTask ->setBinary('phpcs') ->addTarget('src/Soy') ->addTarget('recipe.php') ->setVerbose(true) ->setThrowExceptionOnError(false) ->addIgnorePattern('**/*Task.php') ->addExtension('php') ->setReport(\Soy\PhpCodeSniffer\RunTask::REPORT_FULL) ->setShowSniffs(true) ->addArgument('-v') ->run(); }); return $recipe;
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-20