Skip to content

Commit ce0113b

Browse files
committed
LCORE-2844: Instruct CodeRabbitAI to perform performance and algoritmic complexity checks
1 parent 6323e67 commit ce0113b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.coderabbit.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,18 @@ reviews:
8585

8686
issue_assessment:
8787
mode: warning
88-
custom_checks: []
88+
custom_checks:
89+
- name: 'Performance and Algorithmic Complexity'
90+
mode: error
91+
instructions: |
92+
BLOCKING. Flag only meaningful performance regressions:
93+
1. O(n^2)+ algorithms on non-trivial inputs (handlers, K8s list operations).
94+
2. N+1 patterns: list-then-query-per-item (K8s API, DB).
95+
3. Expensive work inside loops (API calls, JSON parsing, regex compilation).
96+
4. Unbounded growth: caches, watchers, buffers without eviction/limits.
97+
5. Missing pagination/limits on List operations or API endpoints.
98+
99+
Per issue: file, lines, risk, fix category. If clean, mark PASSED.
89100
90101
# ---------------------------------------------------------------------------
91102
# Tools

0 commit comments

Comments
 (0)