|
| 1 | +# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json |
| 2 | +language: en-US |
| 3 | +reviews: |
| 4 | + profile: assertive |
| 5 | + request_changes_workflow: false |
| 6 | + high_level_summary: true |
| 7 | + poem: false |
| 8 | + review_status: true |
| 9 | + collapse_walkthrough: true |
| 10 | + auto_review: |
| 11 | + enabled: true |
| 12 | + drafts: false |
| 13 | + base_branches: |
| 14 | + - main |
| 15 | + path_filters: |
| 16 | + - "!docs/media/**" |
| 17 | + - "!**/*.pbxproj" |
| 18 | + - "!**/Assets.xcassets/**" |
| 19 | + path_instructions: |
| 20 | + - path: "Sources/**/*.swift" |
| 21 | + instructions: | |
| 22 | + Public library code. Check: Swift 6 data-race safety (no unchecked Sendable or unsafe escape hatches without a written invariant), |
| 23 | + structured concurrency over unstructured Task and DispatchQueue, doc comment with example on every public declaration, |
| 24 | + no force unwraps, UIKit/SwiftUI code inside `#if canImport(UIKit)`, Foundation code builds on macOS, |
| 25 | + and no breaking public API change without a CHANGELOG entry. |
| 26 | + - path: "Tests/**/*.swift" |
| 27 | + instructions: | |
| 28 | + Tests should assert behavior, cover edge cases (empty, out of range, non-ASCII), avoid time and locale dependence, |
| 29 | + and mark UIKit or SwiftUI tests @MainActor. |
| 30 | + - path: "Example/**/*.swift" |
| 31 | + instructions: | |
| 32 | + Demo app. Check accessibility (Dynamic Type, VoiceOver labels, Reduce Motion, no color-only status), |
| 33 | + cancellation-aware async work (`.task(id:)` over unstructured Task), and that every Example case has info, playHint and demo. |
| 34 | + - path: ".github/**" |
| 35 | + instructions: | |
| 36 | + Workflows must use least-privilege `permissions`, never run untrusted PR code under pull_request_target, |
| 37 | + and keep action versions current. |
| 38 | +chat: |
| 39 | + auto_reply: true |
0 commit comments