rector/vendor/ssch/typo3-rector
Tomas Votruba e9e85a1300 Updated Rector to commit a8b01f217b
a8b01f217b [automated] Re-Generate Nodes/Rectors Documentation (#619)
2021-08-08 00:26:40 +00:00
..
config Updated Rector to commit a8b01f217b 2021-08-08 00:26:40 +00:00
docs Updated Rector to commit bb384013c3 2021-08-06 20:12:05 +00:00
Migrations Updated Rector to commit a8b01f217b 2021-08-08 00:26:40 +00:00
src Updated Rector to commit a8b01f217b 2021-08-08 00:26:40 +00:00
stubs Updated Rector to commit a8b01f217b 2021-08-08 00:26:40 +00:00
templates Updated Rector to commit bb384013c3 2021-08-06 20:12:05 +00:00
utils/phpstan Updated Rector to commit db2e76b99c 2021-07-22 23:37:17 +00:00
composer.json Updated Rector to commit db2e76b99c 2021-07-22 23:37:17 +00:00
phpstan-baseline.neon Updated Rector to commit 62bbaa56d2 2021-06-28 17:10:14 +00:00
README.md Updated Rector to commit 0864547a0d 2021-05-30 07:54:06 +00:00

Caution

Never run this tool on production, only on development environment where code is under version control (e.g. git). Always review and test automatic changes before releasing to production.

Rector for TYPO3

This repository (ssch/typo3-rector) is for development TYPO3 Rector only. Head to rectorphp/rector for installation.

Apply automatic fixes on your TYPO3 code.

Downloads

Rector aims to provide instant upgrades and instant refactoring of any PHP 5.3+ code. This project adds rectors specific to TYPO3 to help you migrate between TYPO3 releases or keep your code deprecation free.

Table of Contents

  1. Examples in action
  2. Overview of all rules
  3. Installation
  4. Configuration and Processing
  5. Best practice guide
  6. Beyond PHP - Entering the realm of FileProcessors
  7. Limitations
  8. Contribution

Please also have a look at the documentation for Rector itself.

Support

Please post questions to TYPO3 Slack (https://typo3.slack.com) in the channel #ext-typo3-rector. Or feel free to open an issue or start a discussion on github.

Credits

Many thanks to Tomas Votruba for his on going support and Rector. Many thanks to every other contributor.

Oh, and if you've come down this far, you might as well follow me on twitter.

Known Drawbacks

How to Apply Coding Standards?

Rector uses nikic/php-parser, built on technology called an abstract syntax tree (AST). An AST doesn't know about spaces and when written to a file it produces poorly formatted code in both PHP and docblock annotations. That's why your project needs to have a coding standard tool and a set of formatting rules, so it can make Rector's output code nice and shiny again.

We're using ECS with this setup.