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

Open
#595 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
4
Forks
1
Avg merge
6h 31m
Merged PRs (30d)
238

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cpp-best-practices/project_validator

All issues in cpp-best-practices/project_validator

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.