freshyo/react-scan-reports/backend.txt
2026-10-17 16:14:49 +05:30

107 lines
5.2 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Resolving dependencies
Resolved, downloaded and extracted [2]
Agent guidance
- Treat React Doctor diagnostics as starting hypotheses. Read the relevant code before confirming or suppressing each finding.
- For each group, decide true positive, false positive, or needs-human-review, then assign high/medium/low confidence.
- Do not suppress a finding without evidence from the file in question. Confidence requires code context.
- Understand the root cause before editing. Fix the underlying code instead of changing react-doctor config or suppressing rules unless explicitly asked.
- Investigate deeply where relevant: race conditions, security-sensitive flows, state propagation, multi-file refactors, and downstream dependency chains.
- Ignore pure style preferences, theoretical issues without real impact, missing features, and unrelated pre-existing code.
- Start with high-confidence fixes that preserve behavior. Leave low-confidence or product-dependent changes as notes.
- Run `npx react-doctor@latest --verbose --scope changed` before and after changes, plus relevant tests after each focused batch.
- When available, spawn subagents or isolated worktrees for independent rule families, then review and merge only the best safe fixes.
- Split unrelated, broad, or behavior-changing work into separate PRs/branches instead of one large cleanup.
- When one rule spans dozens of files (a migration-scale change), fix a representative sample first, confirm the recipe holds, and get the code owner's sign-off before changing the rest. Don't mass-fix a broad pattern in one unreviewed pass.
- For confirmed issues that cannot be fixed now, create GitHub issues with the rule, file/line, confidence, impact, and proposed fix.
- If a fix needs an API, UX, or architecture decision, stop and ask before editing.
✔ Scanned 127 files in 2.9s
React Doctor — backend
Score disabled by --no-score. Want something custom to your company? Contact us at https://react.doctor/enterprise.
50 issues
Performance: 34 warnings
Bugs: 16 warnings
⚠ await inside a loop ×26
react-doctor/async-await-in-loop
scripts/check-polygon-2.ts:24
scripts/check-polygon.ts:24
src/jobs/cache-creator.ts:75
src/lib/admin-notif.ts:24
src/lib/cloud_cache.ts:127
src/lib/flash-delivery-cron.ts:33
src/lib/flash-delivery-cron.ts:35
src/lib/gen-store.ts:24
src/lib/gen-store.ts:49
src/lib/gen-store.ts:68
src/lib/post-order-handler.ts:117
src/lib/queue-consumer.ts:18
src/lib/queue-consumer.ts:41
src/lib/queue-consumer.ts:53
src/stores/product-tag-store.ts:130
src/stores/user-negativity-store.ts:86
src/trpc/apis/admin-apis/apis/complaint.ts:90
src/trpc/apis/admin-apis/apis/coupon.ts:90
src/trpc/apis/admin-apis/apis/coupon.ts:277
src/trpc/apis/admin-apis/apis/user.ts:216
src/trpc/apis/superadmin-apis/apis/global-coupons.ts:84
src/trpc/apis/user-apis/apis/order.ts:147
src/trpc/apis/user-apis/apis/order.ts:181
src/trpc/apis/user-apis/apis/order.ts:196
src/trpc/apis/user-apis/apis/order.ts:358
src/trpc/apis/user-apis/apis/order.ts:411
⚠ Sequential independent awaits ×11
react-doctor/server-sequential-independent-await
src/lib/cloud_cache.ts:79
src/lib/cloud_cache.ts:150
src/lib/cloud_cache.ts:193
src/trpc/apis/admin-apis/apis/user.ts:54
src/trpc/apis/admin-apis/apis/user.ts:98
src/trpc/apis/admin-apis/apis/user.ts:105
src/trpc/apis/admin-apis/apis/user.ts:168
src/trpc/apis/admin-apis/apis/vendor-snippets.ts:288
src/trpc/apis/superadmin-apis/apis/regions.ts:224
src/trpc/apis/user-apis/apis/auth.ts:342
src/trpc/apis/user-apis/apis/order.ts:454
⚠ fetch Response consumed without status check ×4
react-doctor/no-fetch-response-used-without-status-check
src/lib/cloud_cache.ts:251
src/lib/otp-utils.ts:36
src/lib/otp-utils.ts:58
src/lib/telegram-service.ts:18
⚠ Array lookup inside a loop ×7
react-doctor/js-set-map-lookups
src/trpc/apis/admin-apis/apis/product.ts:155
src/trpc/apis/admin-apis/apis/vendor-snippets.ts:206
src/trpc/apis/admin-apis/apis/vendor-snippets.ts:213
src/trpc/apis/admin-apis/apis/vendor-snippets.ts:305
src/trpc/apis/admin-apis/apis/vendor-snippets.ts:312
src/trpc/apis/common-apis/common.ts:104
src/trpc/apis/common-apis/common.ts:105
⚠ Independent awaits run sequentially
react-doctor/async-parallel
src/trpc/apis/admin-apis/apis/user.ts:53
⚠ Non-inlinable process.env access (Expo)
react-doctor/expo-no-non-inlined-env
tests/helpers/env.ts:15 (test file)
Full diagnostics written to /var/folders/6t/3blzq7_j6p95xzry6t7c14hw0000gn/T/react-doctor-b4b05f8a-860b-4327-a0f6-5444b5bebdcb
────────────────────────────────────────────────────────────
Docs: https://react.doctor/docs
Learn more about fixing issues, setting up CI/CD, and
configuring rules with a config file
GitHub: https://github.com/millionco/react-doctor
Report issues and star the repository!
React Doctor is not installed in this project.
Ask the user if they would like to set it up, then run:
npx react-doctor install --yes
This adds agent skill files, a `doctor` package script, and react-doctor as a dev dependency.