Skip to content

Commit beb1826

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

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+
ignore_title_keywords:
19+
- WIP
20+
- deps
21+
- "Do Not Merge"
22+
path_filters:
23+
- "!**/*.md"
24+
- "!**/*.txt"
25+
- "!**/go.sum"
26+
- "!**/vendor/**"
27+
path_instructions:
28+
- path: "**/*.go"
29+
instructions: |
30+
- Focus on Go best practices and idiomatic patterns
31+
- Check for proper error handling
32+
- Review security implications, especially for CLI tools
33+
- Ensure proper resource cleanup (defer statements)
34+
- Check for goroutine leaks and race conditions
35+
- path: "cmd/**/*.go"
36+
instructions: |
37+
- Review CLI interface and user experience
38+
- Check for proper flag/argument validation
39+
- Ensure helpful error messages for users
40+
- path: "pkg/**/*.go"
41+
instructions: |
42+
- Review API design and package interfaces
43+
- Check for proper encapsulation
44+
- Ensure backward compatibility
45+
- path: "**/*_test.go"
46+
instructions: |
47+
- Review test coverage and edge cases
48+
- Check for table-driven test patterns
49+
- Ensure tests are deterministic and not flaky
50+
abort_on_close: true
51+
auto_title_placeholder: "CodeRabbit"
52+
tools:
53+
golangci-lint:
54+
enabled: true
55+
shellcheck:
56+
enabled: true
57+
yamllint:
58+
enabled: true
59+
markdownlint:
60+
enabled: false
61+
62+
chat:
63+
auto_reply: true
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)