Skip to content

审查+修复:v2 SOLID(DRY/OCP/DIP/LSP/迪米特)#13

Merged
Tanya7z merged 1 commit into
mainfrom
cursor/v2-solid-review-f73b
Jul 22, 2026
Merged

审查+修复:v2 SOLID(DRY/OCP/DIP/LSP/迪米特)#13
Tanya7z merged 1 commit into
mainfrom
cursor/v2-solid-review-f73b

Conversation

@Tanya7z

@Tanya7z Tanya7z commented Jul 22, 2026

Copy link
Copy Markdown
Member

审查准则升级

此后审查强制套用 DRY · OCP · DIP · LSP · Law of Demeter。本 PR 对当前 main@c559ab4 做 SOLID 补充审查,并直接修两处高置信、可验证的违规。

已修复

ID 原则 问题 文件
F1 DRY+LSP config 客户端漏 ?moduleId=(鉴权只认 query) sapi/config/client.ts
F2 LSP service HTTP 绕过 service:<name> 权限门(tx.call 有) routes/service-routes.ts

报告

docs/reviews/v2-solid-principles-review.md — 含仍未修的 BLOCKER(DIP: host 不注入 token; 三抽屉共享 authToken; land-gui 越界)与 MAJOR/MINOR 清单。

与前序审查关系

功能级 BLOCKER 修复见此前 PR #3;本 PR 专盯设计原则。

Made with Cursor

@cursor

cursor Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Rebased onto main@522d799 (post #17). Platform/SDK only: config client withModuleId; service routes assertModulePermission; review doc.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Tanya7z
Tanya7z force-pushed the cursor/v2-solid-review-f73b branch from 8a8a60a to 6197955 Compare July 22, 2026 06:49
@Tanya7z
Tanya7z merged commit 721cd1f into main Jul 22, 2026
1 check passed
@Tanya7z
Tanya7z deleted the cursor/v2-solid-review-f73b branch July 22, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant