Skip to content

Commit 9161dbd

Browse files
Add coderabbit setting file for auto review PRs
1 parent 55d90b9 commit 9161dbd

1 file changed

Lines changed: 73 additions & 0 deletions

File tree

.coderabbit.yaml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# CodeRabbit AI Code Review Configuration
2+
# https://docs.coderabbit.ai/
3+
4+
language: en-US
5+
early_access: false
6+
reviews:
7+
profile: chill
8+
request_changes_workflow: false
9+
high_level_summary: true
10+
poem: false
11+
review_status: true
12+
collapse_walkthrough: false
13+
auto_review:
14+
enabled: true
15+
drafts: false
16+
base_branches:
17+
- main
18+
path_filters:
19+
- "!**/*.md"
20+
- "!**/*.txt"
21+
- "!**/go.sum"
22+
- "!**/vendor/**"
23+
path_instructions:
24+
- path: "**/*.go"
25+
instructions: |
26+
- Focus on Go best practices and idiomatic patterns
27+
- Check for proper error handling
28+
- Review security implications, especially for CLI tools
29+
- Ensure proper resource cleanup (defer statements)
30+
- Check for goroutine leaks and race conditions
31+
- path: "cmd/**/*.go"
32+
instructions: |
33+
- Review CLI interface and user experience
34+
- Check for proper flag/argument validation
35+
- Ensure helpful error messages for users
36+
- path: "pkg/**/*.go"
37+
instructions: |
38+
- Review API design and package interfaces
39+
- Check for proper encapsulation
40+
- Ensure backward compatibility
41+
- path: "**/*_test.go"
42+
instructions: |
43+
- Review test coverage and edge cases
44+
- Check for table-driven test patterns
45+
- Ensure tests are deterministic and not flaky
46+
abort_on_close: true
47+
auto_title_placeholder: "CodeRabbit"
48+
49+
chat:
50+
auto_reply: true
51+
52+
tools:
53+
golangci-lint:
54+
enabled: true
55+
level: warning
56+
shellcheck:
57+
enabled: true
58+
level: warning
59+
yamllint:
60+
enabled: true
61+
level: warning
62+
markdownlint:
63+
enabled: false
64+
65+
knowledge_base:
66+
learnings:
67+
scope: auto
68+
issues:
69+
scope: auto
70+
jira:
71+
project_keys: []
72+
linear:
73+
team_keys: []

0 commit comments

Comments
 (0)