From 88dd880fabc3c1f4c692136746dd34c0d57e4b3c Mon Sep 17 00:00:00 2001 From: Samantha Jayasinghe Date: Wed, 18 Feb 2026 14:24:58 +1300 Subject: [PATCH] Add coderabbit setting file for auto review PRs --- .coderabbit.yaml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .coderabbit.yaml diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 00000000..ca8881e1 --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,69 @@ +# CodeRabbit AI Code Review Configuration +# https://docs.coderabbit.ai/ + +language: en-US +early_access: false +reviews: + profile: chill + request_changes_workflow: false + high_level_summary: true + poem: false + review_status: true + collapse_walkthrough: false + auto_review: + enabled: true + drafts: false + base_branches: + - main + path_filters: + - "!**/*.md" + - "!**/*.txt" + - "!**/go.sum" + - "!**/vendor/**" + path_instructions: + - path: "**/*.go" + instructions: | + - Focus on Go best practices and idiomatic patterns + - Check for proper error handling + - Review security implications, especially for CLI tools + - Ensure proper resource cleanup (defer statements) + - Check for goroutine leaks and race conditions + - path: "cmd/**/*.go" + instructions: | + - Review CLI interface and user experience + - Check for proper flag/argument validation + - Ensure helpful error messages for users + - path: "pkg/**/*.go" + instructions: | + - Review API design and package interfaces + - Check for proper encapsulation + - Ensure backward compatibility + - path: "**/*_test.go" + instructions: | + - Review test coverage and edge cases + - Check for table-driven test patterns + - Ensure tests are deterministic and not flaky + abort_on_close: true + auto_title_placeholder: "CodeRabbit" + tools: + golangci-lint: + enabled: true + shellcheck: + enabled: true + yamllint: + enabled: true + markdownlint: + enabled: false + +chat: + auto_reply: true + +knowledge_base: + learnings: + scope: auto + issues: + scope: auto + jira: + project_keys: [] + linear: + team_keys: []