-
Notifications
You must be signed in to change notification settings - Fork 491
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
69 lines (59 loc) · 1.86 KB
/
Copy path.coderabbit.yaml
File metadata and controls
69 lines (59 loc) · 1.86 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
reviews:
profile: "chill"
high_level_summary: true
poem: false
review_status: true
auto_review:
enabled: true
drafts: false
base_branches:
- "^version/.*"
ignore_title_keywords:
- "WIP"
- "DO NOT REVIEW"
- "chore: auto-translate"
path_filters:
- "!**/build/**"
- "!**/.gradle/**"
- "!**/gradle/wrapper/**"
- "!**/*.iml"
- "!**/generated/**"
- "!**/*.pb.kt"
- "!**/res/values-*/strings.xml"
path_instructions:
- path: "**/*.kt"
instructions: |
This is an Android crypto wallet. Review priorities, in order:
1. Secret material (mnemonic, private key, seed, passphrase) must
never reach logs, analytics, SharedPreferences, DataStore, or any
persisted storage other than Android Keystore. Clipboard copy is
allowed only as an explicit user action from a sensitive-data
screen, ideally with a confirmation step and routed through the
app's centralized clipboard helper. Flag any path where a
secret-looking value crosses a forbidden boundary — even if the
variable is renamed through several function calls.
2. Logging: any Log.d/v/i/w/e or println that can contain secret
material must be guarded by BuildConfig.DEBUG and verified not
to ship.
3. Cryptographic operations must run on Dispatchers.IO or a
dedicated executor, never Dispatchers.Main.
4. StateFlow / SharedFlow values exposed to UI must not contain
secret material.
tools:
gitleaks:
enabled: true
semgrep:
enabled: true
ast-grep:
essential_rules: true
detekt:
enabled: false
chat:
auto_reply: true
knowledge_base:
learnings:
scope: "auto"
opt_out: false
code_guidelines:
filePatterns:
- "docs/CRYPTO_GUIDELINES.md"