Find debug logging in source code
Locate `console.log` usage across a codebase.
rg -t ts -t tsx 'console\.log\(' src/A classic cleanup pass before releases.
High-value ripgrep recipes for refactors, security scans, framework audits, logs, and docs.
Common search patterns used before renames or migrations.
Locate `console.log` usage across a codebase.
rg -t ts -t tsx 'console\.log\(' src/A classic cleanup pass before releases.
Search for an old method across target languages.
rg -t py -t js '\boldApi\(' .This helps estimate migration effort before opening a large refactor.
Search only the frontend component surface.
rg -t tsx '\buseEffect\b' app/Restricting the file type keeps results focused and relevant.
rg -i 'select\s+\*' .Helpful for performance and style audits.
rg -P 'https?://\S+' .Great for finding config drift, API endpoints, and test fixtures.
Fast scans for obvious risky content before commit or deployment.
rg -P 'AKIA[0-9A-Z]{16}' .This is only a first-pass heuristic, not a substitute for dedicated secret scanners.
rg 'BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY' .This scan catches a surprising number of accidental commits.
rg -i 'password|secret|token|api[_-]?key' .env*Useful in onboarding, audits, and pre-release reviews.
rg -P '[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+' .This may produce false positives, but it is helpful for quick triage.
rg -i 'id_rsa|id_ed25519|IdentityFile' .Useful when standardizing deployment and SSH practices.
Practical searches for operations, documentation, and support work.
rg '\b5\d\d\b|Internal Server Error|Exception' logs/A quick first pass before deeper log analysis.
rg -o '\[[^\]]+\]\([^\)]+\)' docs/Useful for doc migrations and broken-link audits.
Search YAML and Helm files for image tags.
rg -t yaml 'image:\s' deploy/ charts/Helpful during security updates and registry migrations.
Search infrastructure code for a resource type.
rg -t tf '^resource\s+"aws_' infra/Great for impact analysis before cloud changes.
rg -t yaml -t json '^\s*operationId:' api/Useful when documenting API coverage or integrating code generators.