cr_checker should reject copyright year ranges
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从本仓库中的版权检查 cr_checker 开始,阅读 copyright pre-commit 钩子背后的代码,并找到它在哪里接受年份范围。复现使用 eclipse-score/score 中的 docs/requirements/stakeholder/index.rst,它可以作为测试输入。完成的标准是:包含 2024-2026 的文件头被拒绝,单个年份如 2024 仍然通过,并且现有测试全部通过。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 1
- 派生
- 5
- 平均合并
- 23 小时 38 分钟
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eclipse-score/tools 的其他 Issue
-
discussion required good first issue
难度 2/5 1-3 小时 新手友好度 67/100
eclipse-score/tools#8 ·
维护者通常 1 天内回复
-
good first issue
难度 4/5 3-5 天 新手友好度 45/100
eclipse-score/tools#55 ·
维护者通常 1 天内回复
-
repo-policy-sync
难度 5/5 一周以上 新手友好度 45/100
eclipse-score/tools#42 ·
维护者通常 1 天内回复
-
repo-policy-sync
难度 4/5 3-5 天 新手友好度 48/100
eclipse-score/tools#31 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 68/100
eclipse-score/tools#28 ·
维护者通常 1 天内回复
查看 eclipse-score/tools 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
NL-BioImaging/biomero#136 ·
维护者通常 1 天内回复
-
Grayscale PNGs with partial transparency can turn gray pixels white可能已有人在做 @ktz03 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
floorianmb/tidywise#5 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
TigreGotico/phoonnx#1115 ·
维护者通常 1 天内回复