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

Aperta
#595 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
4
Fork
1
Merge medio
6h 31m
PR unite (30g)
238

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cpp-best-practices/project_validator

Tutte le issue di cpp-best-practices/project_validator

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.