Support formatting changed files with rs fmt --changed

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

Maintainer thường phản hồi trong vòng 1 ngày

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ệ
typescript
Lĩnh vực
cli

Hướng nghiên cứu

Start by reading the rs fmt command implementation and its existing path and ignore filter handling, then inspect how the CLI resolves the default Git branch and gathers changed, uncommitted, and untracked files. Compare the behavior with the referenced bun fmt --changed documentation. Done means both examples work, filters are respected, and no matching files exits successfully.

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

Mô tả

Add rs fmt --changed to format or check only files changed relative to a Git ref. This would help with local branch checks and PR CI runs, especially when no formatting cache is available.

rs fmt --changed
rs fmt --changed=origin/main --check

Use the default branch when no ref is provided. Include uncommitted changes and untracked files, respect existing path and ignore filters, and exit successfully when no files match.

Reference: bun fmt --changed.

Ngôn ngữ chính
TypeScript
Star
39
Fork
3
Merge trung bình
5 giờ 17 phút
Pull request đã merge (30 ngày)
64

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 rstackjs/rstack-cli

Tất cả issue của rstackjs/rstack-cli

Issue tương tự

Thêm issue về TypeScript

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.