stickee / rector-config

v3.0.0 2024-07-18 15:45 UTC

This package is auto-updated.

Last update: 2024-09-18 16:10:13 UTC


README

为 stickee 项目提供Rector 配置。

安装

mkdir -p tools/rector
composer require --working-dir=tools/rector stickee/rector-config
cp tools/rector/vendor/stickee/rector-config/dist/rector.php rector.php

您必须提交这个新目录和 rector.php 配置文件。

为什么我们要将 Rector 安装到自己的目录中?

使用方法

tools/rector/vendor/bin/rector process           # refactors code
tools/rector/vendor/bin/rector process --dry-run # shows you what it would do