janpecha/code-checker

代码检查器。

v2.8.0 2024-07-15 10:11 UTC

This package is auto-updated.

Last update: 2024-09-15 10:31:45 UTC


README

Build Status Downloads this Month Latest Stable Version License

Donate

安装

下载最新包 或使用 Composer

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);
};

基于 Nette\CodeChecker

许可证: 新BSD许可证
作者: Jan Pecha, https://www.janpecha.cz/