Path reach for jscpd, and for prettier given only docs

Đang mở
#577 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Start with tools/jscpd.py and trace how tool paths are checked for reach; then inspect the formatter reach logic and the tests around ruff check LICENSE.md mentioned in #499. Add coverage for jscpd paths and formatters given only non-code files such as LICENSE.md or README.md. Done means both cases earn nothing and the reason names the path.

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

Mô tả

Problem

  • jscpd … README.md and jscpd … nothing/ both pass copy-paste-detection: jscpd's paths are never judged.
  • prettier --check LICENSE.md passes code-formatting for a TypeScript project ("CI enforces the prettier formatting"). Markdown isn't a recorded source language, so the path isn't judged. #499 lists this as refused, but its test only covers ruff check LICENSE.md.

Expected

  • jscpd's paths go through the same reach check as other tools (tools/jscpd.py).
  • A formatter given only files that aren't code of the unit (LICENSE.md, README.md) reaches no unit.

Done when

Both cases earn nothing, with the path named in the reason.

Split from #476. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Ngôn ngữ chính
Python
Star
4
Fork
1
Merge trung bình
6 giờ 31 phút
Pull request đã merge (30 ngày)
238

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 cpp-best-practices/project_validator

Tất cả issue của cpp-best-practices/project_validator

Issue tương tự

Thêm issue về Python

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.