Add coding conventions derived from recent PR review feedback#4636
Add coding conventions derived from recent PR review feedback#4636
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s Claude rule docs to codify recurring review feedback (interface design, testing practices, operator status consistency, and PR hygiene) so those expectations are enforced consistently going forward.
Changes:
- Add new Go style guidance for interface design, URL validation, bounded caches, and concurrency comment accuracy.
- Expand testing rules with E2E expectations, discouraging test hooks in production structs, and requiring timeouts for blocking concurrency barriers.
- Add operator and PR-creation guidance around status condition parity and keeping PRs single-scope.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| .claude/rules/vmcp-anti-patterns.md | Adds a new vMCP anti-pattern covering mutex-protected mutable domain objects. |
| .claude/rules/testing.md | Tightens test naming guidance and adds new sections for E2E behavior coverage and concurrency/testing patterns. |
| .claude/rules/pr-creation.md | Adds a “PR Scope” section to discourage mixed-scope PRs. |
| .claude/rules/operator.md | Adds guidance to keep status conditions consistent across parallel CRD types. |
| .claude/rules/go-style.md | Adds new Go conventions around interfaces, string constants, URL validation, bounded caches, and concurrency comments. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4636 +/- ##
==========================================
+ Coverage 68.85% 68.86% +0.01%
==========================================
Files 508 508
Lines 52604 52604
==========================================
+ Hits 36220 36227 +7
+ Misses 13586 13581 -5
+ Partials 2798 2796 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
638b7e0 to
089dae9
Compare
089dae9 to
0cc2756
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8f72233 to
9d94929
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9d94929 to
11a8d8e
Compare
11a8d8e to
d4cf699
Compare
Captures patterns flagged in reviews across interface design, testing, operator development, and PR hygiene — so they apply automatically going forward rather than being caught in review.
d4cf699 to
41c82dc
Compare
Summary
Captures patterns flagged in reviews across interface design, testing, operator development, and PR hygiene — so they apply automatically going forward rather than being caught in review.
Fixes #
Type of change
Test plan
task test)task test-e2e)task lint-fix)Changes
Does this introduce a user-facing change?
Special notes for reviewers