Repository hygiene
Debug console.log calls left in browser codelaunch.debug-logging
console.log calls in code that runs in the browser print internal data (API responses, user objects, state) to every visitor's DevTools, and clutter real errors. They are usually leftovers from debugging with an AI assistant.
- In force Rule launch.debug-logging
- 3 clauses
At a glance
| Severity | low |
|---|---|
| Certainty | Observed — the code as written is the problem |
| Looks at | your source code |
| When it runs | Runs on every scan |
How to fix it
Delete the debug logs, or route them through a logger that is silent in production (`if (import.meta.env.DEV) …`).
Check your own app
Run npx scanlyfix scan in your project. Every finding gets an id; after fixing, npx scanlyfix verify <id> proves it is gone.
If it is a false positive in your project, silence that one line with // scanlyfix-ignore-next-line launch.debug-logging -- <why>.
Your code stays
on your machine
Only findings are uploaded, and only to your own dashboard.
ScanlyFix
Security, privacy pages, SEO and AI visibility checked in one scan, with fixes your AI editor can apply.
Home