janpecha / code-checker
代码检查器。
v2.8.0
2024-07-15 10:11 UTC
Requires
- php: 8.2 - 8.3
- czproject/assert: ^1.4
- czproject/git-php: ^4.0
- czproject/path-helper: ^4.1
- czproject/php-simple-ast: ^1.2
- nette/code-checker: ^3.2
- symfony/yaml: ^7.0
Requires (Dev)
- nette/tester: ^2.4
README
安装
composer require janpecha/code-checker
CodeChecker 需要 PHP 8.2 或更高版本。
使用
Usage:
php code-checker [options]
Options:
-c <path> Config file
-f | --fix Fixes files
--no-progress Do not show progress dots
--step-by-step Stops on change or report
--git Enables GIT support (auto commit of changes)
配置文件 code-checker.php
<?php return function (JP\CodeChecker\CheckerConfig $config) { $config->addPath(__DIR__ . '/app'); JP\CodeChecker\AutoConfig::configure($config); };
许可证: 新BSD许可证
作者: Jan Pecha, https://www.janpecha.cz/