mlencki / code-style-configs
This package is abandoned and no longer maintained.
No replacement package was suggested.
Ready to use config wrappers for easy-coding-standard and rector code style fixers.
v1.0.0
2021-01-14 21:38 UTC
Requires
- php: ^8.0
- rector/rector: ^0.9.7
- symplify/easy-coding-standard: ^9.0
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2021-06-14 23:01:05 UTC
README
Ready to use config wrappers for easy-coding-standard and rector code style fixers.
Installation
Using composer:
composer require mlencki/code-style-configs --dev
Usage
Simplest ecs.php
configuration file example:
<?php declare(strict_types=1); use MLencki\CodeStyle\EasyCodingStandard\Config; $config = new Config(); $config->scanPaths(['src', 'tests']); return $config->get();
The same for rector.php
:
<?php declare(strict_types=1); use MLencki\CodeStyle\Rector\Config; use Rector\Core\Configuration\Option; $config = new Config(); $config->scanPaths(['src', 'tests']); $config->setOption(Option::AUTOLOAD_PATHS, ['tests']); return $config->get();
Local development
Install composer dependencies:
docker-compose run php composer install
Running code style checks:
docker-compose run php composer ecs
Running tests:
docker-compose run php composer tests