Skip to content

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

launch.debug-logging
Severitylow
CertaintyObserved — the code as written is the problem
Looks atyour source code
When it runsRuns 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>.

All rules

Your code stays
on your machine

Only findings are uploaded, and only to your own dashboard.