fleetlint Policy for a fleet of repositories
v0.4
Getting started

slop/scratch-scripts

No scratch scripts at the repository root

Severitywarning
Tiersall
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.1.0
Selected byfleetlint-recommended@v0.1.0

Requirement

No one-off scripts named fix_*, debug-*, tmp_*, temp_*, scratch_*, try_* or quick_* (such as fix_imports.py, debug-auth.js, tmp_check.sh) are tracked at the root. test_* files are tests, not scratch scripts.

Why

They were written to answer one question once; nobody knows later whether they are safe to run or to delete.

Check

For each item in:

tracked().filter(p, p.matches(r'^(fix|debug|temp|tmp|scratch|try|quick)[_-][^/]*\.(py|js|ts|sh|go|dart|kt|rs|rb|php)$'))
false

Fix

Delete the script, or move it into a tools directory with a name that says what it does.

Agent instruction: Report the script; delete it only if nothing references it, otherwise move it under scripts/ with a descriptive name.

See: https://fleetlint.org/baseline/#slop, https://fleetlint.org/slop/#repository-and-files


Generated by fleetlint docs from catalog v0.1.0.