friendsofonlishop / onlishop-rector
Onlishop specific Rector
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:rector-extension
pkg:composer/friendsofonlishop/onlishop-rector
Requires
- php: ^8.1
- rector/rector: ~2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.57
- phpunit/phpunit: ^9.5
- symplify/easy-coding-standard: ~11.2
Conflicts
- rector/rector: <2.0
README
This project extends Rector with multiple Rules for Onlishop specific.
See available Onlishop rules
Install
Make sure to install both frosh/onlishop-rector as well as rector/rector.
composer req frosh/onlishop-rector --dev
Use Sets
To add a set to your config, use FriendsOfOnlishop\Rector\Set\OnlishopSetList class and pick one of constants:
use Rector\Config\RectorConfig; use FriendsOfOnlishop\Rector\Set\OnlishopSetList; return RectorConfig::configure() ->withSets([ OnlishopSetList::ONLISHOP_6_7_0, ]);
Use directly the config
# Clone this repo composer install # Dry Run ./vendor/bin/rector process --config config/onlishop-6.7.0.php --autoload-file [ONLISHOP]/vendor/autoload.php [ONLISHOP]/custom/plugins/MyPlugin --dry-run # Normal Run ./vendor/bin/rector process --config config/onlishop-6.7.0.php --autoload-file [ONLISHOP]/vendor/autoload.php [ONLISHOP]/custom/plugins/MyPlugin