Make "NewlineAfterStatementRector" and "NewlineBetweenClassLikeStmtsRector" optional
Author: kevin-emoCreated Sep 29, 2026Updated Sep 29, 2026
Labelsfeature
Would it be possible to make these two specific rules either opt-in, configurable, or both ?
- https://getrector.com/rule-detail/newline-after-statement-rector
- https://getrector.com/rule-detail/newline-between-class-like-stmts-rector
Of course, they can easily be skipped, but from my perspective, it feels odd to have such opinionated coding style rules enforced by default in sets.
In my case, I have been skipping them for years now, ever since I started using Rector.
Source: rectorphp/rector