Skip to content

Commit 88dd880

Browse files
Add coderabbit setting file for auto review PRs
1 parent 55d90b9 commit 88dd880

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

.coderabbit.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
tools:
49+
golangci-lint:
50+
enabled: true
51+
shellcheck:
52+
enabled: true
53+
yamllint:
54+
enabled: true
55+
markdownlint:
56+
enabled: false
57+
58+
chat:
59+
auto_reply: true
60+
61+
knowledge_base:
62+
learnings:
63+
scope: auto
64+
issues:
65+
scope: auto
66+
jira:
67+
project_keys: []
68+
linear:
69+
team_keys: []

0 commit comments

Comments
 (0)