-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
61 lines (54 loc) · 1.94 KB
/
Copy path.coderabbit.yaml
File metadata and controls
61 lines (54 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# yaml-language-server: $schema=https://storage.googleapis.com/coderabbit_public_assets/schema.v2.json
#
# CodeRabbit AI code review configuration.
# This file only customizes review behavior. Enabling CodeRabbit itself is done
# by installing the CodeRabbit GitHub App on the repository/organization; no CI
# workflow is required.
language: en-US
reviews:
# "chill" keeps a balanced signal-to-noise ratio; switch to "assertive" for
# stricter nitpicks or "quiet" for the minimum.
profile: chill
# Post comments only; do not formally block merges with "changes requested".
request_changes_workflow: false
high_level_summary: true
review_status: true
collapse_walkthrough: true
# Skip the auto-generated poem for a cleaner PR thread.
poem: false
auto_review:
enabled: true
# Do not spend reviews on draft PRs.
drafts: false
# Do not review generated code (mirrors .golangci.yml and .typos.toml).
path_filters:
- "!**/*.pb.go"
- "!**/*_mock.go"
- "!**/*.gen.go"
- "!**/*.trpc.go"
- "!**/*_string.go"
- "!go.sum"
path_instructions:
- path: "**/*.go"
instructions: >-
Follow the rules in .golangci.yml. Flag exported identifiers that lack a
doc comment (revive/exported), potential security issues (gosec), and
functions whose cyclomatic complexity exceeds 20 (gocyclo). Prefer
concrete, actionable suggestions over pure style nitpicks.
tools:
# Reuse the repo's existing linter config so CodeRabbit and CI stay aligned.
golangci-lint:
enabled: true
config_file: .golangci.yml
# Wait for and incorporate existing CI check results (build/test/lint).
github-checks:
enabled: true
# Secret scanning on changed files.
gitleaks:
enabled: true
# Lint the GitHub Actions workflows themselves.
actionlint:
enabled: true
chat:
# Let contributors talk to CodeRabbit without @-mentioning it every time.
auto_reply: true