Skip to content

stickeeuk/rector-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stickee Rector config

Provides a Rector config for stickee projects.

Installation

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

You must commit this new directory and the rector.php config file.

Why do we install Rector into its own directory?

Usage

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