Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Make "NewlineAfterStatementRector" and "NewlineBetweenClassLikeStmtsRector" optional

Đang mở
#9,917 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
tooling

Hướng nghiên cứu

Start with the two linked rule-detail pages for NewlineAfterStatementRector and NewlineBetweenClassLikeStmtsRector, then trace how those rules are included in default sets. Define whether each rule should be opt-in, configurable, or both, and verify that the chosen behavior no longer enforces them by default while still allowing explicit use.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

feature

Would it be possible to make these two specific rules either opt-in, configurable, or both ?

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.

Ngôn ngữ chính
PHP
Star
10.4k
Fork
742
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rectorphp/rector

Tất cả issue của rectorphp/rector

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.