-
Notifications
You must be signed in to change notification settings - Fork 249
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
98 lines (96 loc) · 4.29 KB
/
Copy path.coderabbit.yaml
File metadata and controls
98 lines (96 loc) · 4.29 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
inheritance: true
language: en-US
reviews:
profile: chill
high_level_summary: true
collapse_walkthrough: true
changed_files_summary: false
sequence_diagrams: false
estimate_code_review_effort: false
poem: false
suggested_labels: false
path_filters:
- "!vendor/**"
- "!**/vendor/**"
- "!pkg/**/mocks/**"
- "!cmd/create/idp/mocks/**"
- "!assets/bindata.go"
- "!**/*.pb.go"
- "!**/*.pb.gw.go"
- "!**/testdata/**"
path_instructions:
- path: "cmd/**/*.go"
instructions: |
- Treat Cobra wiring, flags, command UX, and error handling as high-signal review areas.
- Flag changes that add commands or flags without matching updates to `cmd/rosa/structure_test/command_structure.yml` or the matching `command_args.yml`.
- Prefer thin command files and business logic in `pkg/`.
- path: "**/*.sh"
instructions: |
- Review shell scripts for portable bash usage, strict-mode safety, quoting, and robust temporary-file or pipe handling.
- Keep script behavior aligned with `Makefile`, `hack/run-checks.sh`, and the git hooks instead of introducing parallel workflows.
- path: "**/Dockerfile*"
instructions: |
- Keep build and runtime image changes aligned with the repo's Go toolchain, release flow, and static-binary expectations.
- Flag unpinned downloads, secret-bearing build arguments, or image changes that drift from Tekton/Konflux assumptions without justification.
- path: ".tekton/**/*.{yml,yaml}"
instructions: |
- Treat Konflux/Tekton pipeline steps, required scan stages, and fail-fast behavior as high-signal review areas.
- Flag changes that bypass validation gates, artifact flow, or image/security checks without matching workflow updates.
- path: "pkg/aws/**/*.go"
instructions: |
- Cross-check AWS behavior and user-facing wording against the official ROSA and AWS references called out in `AGENTS.md`.
- Flag hardcoded credentials, secret exposure, or assumptions about STS, IAM, OIDC, VPC, quotas, or regions that are not verified.
- path: "pkg/**/*.go"
instructions: |
- Review for test coverage impact, error wrapping, reporter consistency, and alignment with nearby package patterns.
- Flag direct edits to generated mocks or attempts to bypass existing helper flows.
- path: "**/*_test.go"
instructions: |
- Use Ginkgo v2 and Gomega conventions already present in the repo.
- Flag weak tests that only restate implementation or changes that weaken existing assertions.
- path: "**/*.md"
instructions: |
- Check commands, workflow steps, and product terminology against `AGENTS.md`, `CONTRIBUTING.md`, `guidelines/ARCHITECTURE.md`, and official ROSA/AWS docs.
- Flag stale file paths, placeholder Jira links, or wording that conflicts with the real repository workflow.
- path: "cmd/rosa/structure_test/**/*.{yml,yaml}"
instructions: |
- Ensure command structure and flag expectations stay exactly aligned with the CLI tree and supported Cobra flags.
- Flag command or flag changes in Go code that are not reflected here, and vice versa.
- path: "cmd/create/network/templates/**/*.yaml"
instructions: |
- Review CloudFormation and network template changes against the ROSA and AWS guidance referenced from `AGENTS.md`.
- Flag unsupported AWS assumptions, risky networking defaults, or stale CLI-version/template compatibility notes.
- path: ".github/**/*"
instructions: |
- Keep issue and PR metadata aligned with repo-local agent guidance and contributor workflow.
tools:
checkov:
enabled: false
gitleaks:
enabled: true
golangci-lint:
enabled: true
hadolint:
enabled: true
markdownlint:
enabled: false
shellcheck:
enabled: true
trivy:
enabled: false
yamllint:
enabled: true
knowledge_base:
code_guidelines:
enabled: true
filePatterns:
- AGENTS.md
- CONTRIBUTING.md
- .cursor/rules/*.mdc
- guidelines/ARCHITECTURE.md
- guidelines/*-guidelines.md
- .claude/SKILLS.md
- .claude/skills/**/SKILL.md
learnings:
scope: local