Files
app/.cursor/rules/no-rg.mdc
2026-06-24 17:16:34 +03:00

23 lines
535 B
Plaintext

---
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
```