cr_checker should reject copyright year ranges
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start with the cr_checker copyright check in this repo, the code behind the copyright pre-commit hook, and find where it accepts a year range. The reproduction uses docs/requirements/stakeholder/index.rst in eclipse-score/score, which can serve as a test input. Done when a header with 2024-2026 is rejected, a single year such as 2024 still passes, and the existing tests pass.
Written by the indexing model from the issue text.
Description
S-CORE copyright headers use a single four-digit year. The current cr_checker accepts a fully written year range such as 2024-2026, so the copyright hook lets that format through.
The Eclipse Project Handbook addresses year ranges directly. It says, “Specify the year that the content was initially created in the copyright statement.” The handbook defines {year} in the header template as the year of creation. Legal Documentation FAQ, questions 2 and 3 · Copyright Headers
Reproduction
- Configure the
copyrightpre-commit hook fromeclipse-score/toolsat commit407601e138e2dcda317f8cfbd8026a71d762ee8c. - In
eclipse-score/score, useCopyright (c) 2024-2026 Contributors to the Eclipse Foundationin the otherwise valid RST header ofdocs/requirements/stakeholder/index.rst. - Run
pre-commit run copyright --files docs/requirements/stakeholder/index.rst.
The hook reports Passed and leaves the range in place.
Expected behavior
Flag year ranges such as 2024-2026 as invalid. A single four-digit year such as 2024 should pass.
The Score-side correction uses the single year 2024. eclipse-score/score#3528
- Dominant language
- Python
- Stars
- 1
- Forks
- 5
- Avg merge
- 23h 38m
- Merged PRs (30d)
- 13
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-score/tools
-
discussion required good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
eclipse-score/tools#8 ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 4/5 3-5 days Newbie friendliness 45/100
eclipse-score/tools#55 ·
Maintainers usually reply within 1 day
-
repo-policy-sync
Difficulty 5/5 Over a week Newbie friendliness 45/100
eclipse-score/tools#42 ·
Maintainers usually reply within 1 day
-
repo-policy-sync
Difficulty 4/5 3-5 days Newbie friendliness 48/100
eclipse-score/tools#31 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
eclipse-score/tools#28 ·
Maintainers usually reply within 1 day
All issues in eclipse-score/tools
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
NL-BioImaging/biomero#136 ·
Maintainers usually reply within 1 day
-
Grayscale PNGs with partial transparency can turn gray pixels whitePossibly taken @ktz03 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
floorianmb/tidywise#5 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
TigreGotico/phoonnx#1115 ·
Maintainers usually reply within 1 day