Repository navigation
chore(repo): 移除 Sonar 声明与上游来源记录 - #305
Merged
Merged
Conversation
审计对照 26dbcae 已为 0 行 / 0 段 / 0 文件,移除声明的前提成立:删除 engine/UPSTREAM.md 与 THIRD_PARTY_NOTICES.md 的 Sonar 段,两份 LICENSE 的指路句不再提及该声明;license_test 改为校验保留的第三方资产条目与 发布打包路径。 Co-Authored-By: Claude Code <noreply@anthropic.com>
归零后不再保留指向该上游检出的工具与测试,避免仓库继续依赖外部仓库才能 完成的检查。历史审计结果由 Git 历史保留。 Co-Authored-By: Claude Code <noreply@anthropic.com>
产品原则改为泛指参考项目与既有实践;架构文档把来源与版权指向许可证与 第三方声明;buildinfo 与 groups 的注释去掉对已删除记录的引用,文档测试 夹具改用 LICENSE。中英文档同步。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
前提
审计脚本对照固定上游
26dbcae的输出已归零(0 行 / 0 段 / 0 文件,退出码 0),engine/UPSTREAM.md写明的移除条件成立。本 PR 执行声明的移除,并按约定把审计工具一并删除。改动
engine/UPSTREAM.md。THIRD_PARTY_NOTICES.md的「历史代码来源:Sonar」整段(含 MIT 原文与指路句)。LICENSE与engine/LICENSE的第三方指路句不再提及该声明,其他内容不变。scripts/license_test.py:删除该声明的断言,改为校验保留的第三方资产条目(GSAP、字体、Go 依赖)与发布打包路径。scripts/audit-upstream-origin.py与其测试(归零后不再保留依赖外部检出的检查)。docs/product.md/product.zh.md、docs/agent/architecture.md、buildinfo与groups的注释不再引用该上游或已删除的记录;scripts/check_docs_test.py的夹具改用LICENSE。中英文档同步。历史事实仍由 Git 历史保留,本次只移除仓库当前工作树中的声明与工具。
验证
python3 -m unittest discover -s scripts -p '*_test.py'→ 273 tests OK(skipped=1)python3 scripts/check_docs.py→ 6 对文档一致,退出码 0python3 scripts/license_test.py→ 通过go vet ./...、go test -count=1 -timeout=8m ./...→ 全绿RasKrebs、UPSTREAM.md、audit-upstream-origin:无匹配(.git元数据除外)🤖 Generated with Claude Code