diff --git a/composer.json b/composer.json index b0fe1213..c871f23b 100644 --- a/composer.json +++ b/composer.json @@ -76,10 +76,10 @@ "check:dynamic": [ "@check:tests" ], - "check:php:codesniffer": "phpcs --standard=config/phpcs.xml config src tests", - "check:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin src tests config", - "check:php:lint": "parallel-lint src tests config bin", - "check:php:rector": "rector --no-progress-bar --dry-run --config=config/rector.php", + "check:php:codesniffer": "phpcs --standard=config/phpcs.xml bin config src tests", + "check:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin config src tests", + "check:php:lint": "parallel-lint bin config src tests", + "check:php:rector": "rector process --no-progress-bar --dry-run --config=config/rector.php", "check:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon", "check:static": [ "@check:composer:normalize", @@ -105,9 +105,9 @@ "@fix:php:codesniffer", "@fix:php:fixer" ], - "fix:php:codesniffer": "phpcbf --standard=config/phpcs.xml config src tests", - "fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin src tests", - "fix:php:rector": "rector --config=config/rector.php", + "fix:php:codesniffer": "phpcbf --standard=config/phpcs.xml bin config src tests", + "fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin config src tests", + "fix:php:rector": "rector process --config=config/rector.php", "phpstan:baseline": "phpstan --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon --allow-empty-baseline" }, "scripts-descriptions": { diff --git a/config/php-cs-fixer.php b/config/php-cs-fixer.php index 326105a0..807b376f 100644 --- a/config/php-cs-fixer.php +++ b/config/php-cs-fixer.php @@ -2,7 +2,9 @@ declare(strict_types=1); -return (new \PhpCsFixer\Config()) +use PhpCsFixer\Config; + +return (new Config()) ->setRiskyAllowed(true) ->setRules( [ diff --git a/config/rector.php b/config/rector.php index 61df8418..cf501b19 100644 --- a/config/rector.php +++ b/config/rector.php @@ -10,6 +10,8 @@ return RectorConfig::configure() ->withPaths( [ + __DIR__ . '/../bin', + __DIR__ . '/../config', __DIR__ . '/../src', __DIR__ . '/../tests', ]