From 12fcc3d9b768db0cd53cf0b8fadbd82beaaecdf4 Mon Sep 17 00:00:00 2001 From: Nicolae Nicora Date: Tue, 17 Mar 2026 10:38:39 +0100 Subject: [PATCH 1/2] fix: add coderabbit file --- .coderabbit.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .coderabbit.yaml diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 0000000..8b6a507 --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,30 @@ +version: 2 +language: "en-US" +early_access: false + +reviews: + profile: "assertive" + request_changes_workflow: false + high_level_summary: true + poem: false + review_status: true + collapse_walkthrough: false + + auto_review: + enabled: true + drafts: false + + ignore_custom_labels: + - "dependabot" + - "dependencies" + - "skip-review" + - "automated-pr" + +chat: + auto_reply: true + +custom_instructions: | + - Prioritize identifying security vulnerabilities, unhandled errors, and concurrency issues (e.g., goroutine leaks, race conditions). + - Enforce idiomatic Go best practices. Do not nitpick formatting if it contradicts standard `gofmt` or `goimports` behavior. + - Review Dockerfiles for multi-stage build efficiency, principle of least privilege, and hardcoded secrets. + - Ignore coverage artifacts (.out, .html), generated mock files, and compiled binaries during analysis. \ No newline at end of file From 556a162a797e688c23e0d1e9f5077e28617b63e5 Mon Sep 17 00:00:00 2001 From: Nicolae Nicora Date: Tue, 17 Mar 2026 10:53:35 +0100 Subject: [PATCH 2/2] fix: implement the --- .coderabbit.yaml | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/.coderabbit.yaml b/.coderabbit.yaml index 8b6a507..72d022d 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -1,3 +1,4 @@ +# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json version: 2 language: "en-US" early_access: false @@ -13,18 +14,34 @@ reviews: auto_review: enabled: true drafts: false + labels: + - "!dependabot" + - "!dependencies" + - "!skip-review" + - "!automated-pr" - ignore_custom_labels: - - "dependabot" - - "dependencies" - - "skip-review" - - "automated-pr" + path_filters: + - "!**/*.out" + - "!**/*.html" + - "!**/mocks/**" + - "!**/*_mock.go" + + path_instructions: + - path: "**/*.go" + instructions: | + Prioritize identifying security vulnerabilities, unhandled errors, and concurrency issues (e.g., goroutine leaks, race conditions). + Enforce idiomatic Go best practices. Do not nitpick formatting if it contradicts standard `gofmt` or `goimports` behavior. + - path: "**/Dockerfile*" + instructions: | + Review Dockerfiles for multi-stage build efficiency, principle of least privilege, and hardcoded secrets. chat: auto_reply: true -custom_instructions: | - - Prioritize identifying security vulnerabilities, unhandled errors, and concurrency issues (e.g., goroutine leaks, race conditions). - - Enforce idiomatic Go best practices. Do not nitpick formatting if it contradicts standard `gofmt` or `goimports` behavior. - - Review Dockerfiles for multi-stage build efficiency, principle of least privilege, and hardcoded secrets. - - Ignore coverage artifacts (.out, .html), generated mock files, and compiled binaries during analysis. \ No newline at end of file +code_generation: + docstrings: + language: "en-US" + unit_tests: + path_instructions: + - path: "**/*.go" + instructions: "Use standard library testing and table-driven tests for Go." \ No newline at end of file