Licence: a README 'licensed under' line warns, and standard text after a preface is recognised

Đang mở
#595 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

Read tools/licenses.py and policy/license.py, which the issue identifies as the unchanged license handling code; inspect how README declarations and full license texts are recognized. Add fixtures for the README-only LPPL declaration and the EUPL text after a preface, while keeping tmux’s altered ISC text unrecognized. Done means all three fixture cases behave as specified.

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

Mô tả

Decided (2026-12-02)

  1. A licence declared only in the README (plk/biblatex, LPPL 1.3) is WARN, not FAIL. The detail names the README. This applies only to an explicit "licensed under " line, and the hint says to add a LICENSE file.
  2. A standard licence text that appears whole after a project preface (pi-hole, EUPL) is recognised, and the preface is noted in the details. Altered texts such as tmux's ISC stay not recognised.

Neither is built: tools/licenses.py and policy/license.py are unchanged since #523.

Done when

Fixtures for both cases, plus tmux's altered text still not recognised.

Split from #487. 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.