Skip to content

Repository hygiene

node_modules or build output committed to gitlaunch.build-artifacts-committed

Git tracks a folder an install or a build creates (node_modules, .next, .nuxt, .svelte-kit, .vercel, a Python virtualenv). Native packages compiled for your laptop then crash on the Linux build server, an old build can be served, and the repository grows until pushes fail.

  • In force Rule launch.build-artifacts-committed
  • 3 clauses

At a glance

launch.build-artifacts-committed
Severitymedium
CertaintyObserved — the code as written is the problem
Looks atyour git history
When it runsRuns on every scan

How to fix it

git rm -r --cached the folder, add it to .gitignore, and commit; the build server recreates it.

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.build-artifacts-committed -- <why>.

All rules

Your code stays
on your machine

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