mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
Registry was a plain map alias and DiffMap a shared map[string]string, both relying on implicit write-before-read ordering with no compile-time safety. Refactor Registry into an encapsulated struct with Freeze() that panics on post-freeze writes, and wrap DiffMap as an immutable value type with defensive copy on construction. Move DiffMap injection to before filterDiffs to preserve the original behavior of exposing all file diffs. |
||
|---|---|---|
| .. | ||
| config_cmd.go | ||
| flags.go | ||
| git.go | ||
| llm_cmd.go | ||
| main.go | ||
| output.go | ||
| review_cmd.go | ||
| rules_cmd.go | ||
| version.go | ||
| viewer_cmd.go | ||