Skip to content

janpecha/code-checker

Repository files navigation

JP\Code Checker

Build Status Downloads this Month Latest Stable Version License

Donate

Installation

Download a latest package or use Composer:

composer require janpecha/code-checker

CodeChecker requires PHP 8.2 or later.

Usage

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)

Config file code-checker.php:

<?php

return function (JP\CodeChecker\CheckerConfig $config) {
	$config->addPath(__DIR__ . '/app');
	JP\CodeChecker\AutoConfig::configure($config);
};

Based on Nette\CodeChecker.


License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/