nateageek / robo-phplint
这是对 overtune/phplint 的封装,允许在 robo 任务中运行
1.1
2021-01-13 20:19 UTC
Requires
- consolidation/robo: ^1 || ^2
- overtrue/phplint: ^1.2
- php-parallel-lint/php-console-highlighter: dev-master as 0.5
Requires (Dev)
- phpunit/phpunit: ^7.1
This package is auto-updated.
Last update: 2024-09-14 04:24:29 UTC
README
通过 composer require nateageek/robo-phplint
安装仓库
用法
<?php class RoboFile extends \Robo\Tasks { use NateAGeek\Robo\Task\PHPLint\Tasks; function testLint() { //This will run phplint on all *.php files in the directory /phplint-code // Also will return any errors found as an array. $this->taskPHPLintTask("/phplint-code") ->run(); } }