使"NewlineAfterStatementRector"和"NewlineBetweenClassLikeStmtsRector"成为可选项
作者: kevin-emo创建于 2026年9月29日更新于 2026年9月29日
标签feature
是否可以将这两个特定规则设置为可选、可配置,或者两者兼有? - https://getrector.com/rule-detail/newline-after-statement-rector - https://getrector.com/rule-detail/newline-between-class-like-stmts-rector 当然,这些规则可以轻松忽略,但从我的角度来看,默认在集合中强制执行这种主观的编码风格规则感觉有些奇怪。 在我的情况下,自从开始使用 Rector 以来,我就一直在忽略它们。
内容来源: rectorphp/rector