mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
Implement new account deletion and auth flows
Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
---
|
||||
description: Keep Kotlin code clean — inline single-use helpers, match project conventions
|
||||
globs: app/shared/**/*.kt,utils/shared/**/*.kt
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
# Kotlin clean code
|
||||
|
||||
- If a function, variable, or small wrapper is used **once**, inline it at the call site unless it clarifies a non-obvious boundary (network call, animation controller, crypto).
|
||||
- Prefer existing project components (`ActionButton`, `Category`, `ExpressiveStepFlow`, `apiRequest`) over new abstractions.
|
||||
- Match surrounding naming, imports, and composable structure; read adjacent files before adding helpers.
|
||||
- Extract only when shared by **2+** call sites or when the block exceeds ~40 lines of non-trivial logic (pager math, crypto, API wiring).
|
||||
- No hardcoded user-visible strings in shared UI — use Compose Multiplatform resources (`composeResources/values/strings.xml` + `values-ru`).
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
description: Do not use ripgrep (rg) in shell commands or scripts
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
# Never use `rg`
|
||||
|
||||
Do **not** run `rg` / ripgrep in terminal commands. It is unreliable in this environment.
|
||||
|
||||
## Use instead
|
||||
|
||||
- **Cursor Grep tool** — preferred for searching the codebase
|
||||
- **`grep -r`** — if a shell search is truly needed
|
||||
- **Glob / SemanticSearch** — for finding files or concepts
|
||||
|
||||
```bash
|
||||
# ❌ BAD
|
||||
rg "probeCurrentServer" app/shared
|
||||
|
||||
# ✅ GOOD — use the Grep tool, or:
|
||||
grep -r "probeCurrentServer" app/shared
|
||||
```
|
||||
Reference in New Issue
Block a user