.swamp/datastore-bundles/ leaks into deno lint and deno fmt scans
Opened by stack72 · 4/8/2026· Shipped 4/8/2026
Summary
deno lint and deno fmt --check at the repo root scan generated bundle
files under .swamp/datastore-bundles/, producing thousands of warnings
and "not formatted" errors that are unrelated to any tracked source code.
This makes both commands unusable as a local or CI pre-flight check
without targeting specific directories.
Reproduction
From the repo root with a populated local swamp repo (.swamp/ exists):
$ deno lint
...
Found 4688 problems (95 fixable via --fix)
Checked 3059 files
$ deno fmt --check
...
error: Found 37 not formatted files in 3452 filesAll reported problems point at files like
.swamp/datastore-bundles/f5b38492/s3.js — these are bundled third-party
JavaScript artifacts, not swamp source code.
Root Cause
.gitignore lines 14–25 exclude most .swamp/ subdirectories
(.swamp/data/, .swamp/bundles/, .swamp/vault-bundles/, etc.) but
.swamp/datastore-bundles/ is NOT in the list. More importantly, even if
it were gitignored, deno lint and deno fmt don't honor .gitignore by
default — they need explicit exclude entries in deno.json under lint
and fmt sections.
Proposed Fix
Add .swamp/ (or specifically .swamp/datastore-bundles/) to the
exclude arrays in deno.json under both lint and fmt:
{
"lint": {
"exclude": [".swamp/"]
},
"fmt": {
"exclude": [".swamp/"]
}
}Also add .swamp/datastore-bundles/ to .gitignore for consistency with
the other .swamp/ subdirectories.
Environment
- Discovered while verifying PR #1141 (hono dependency bump). Had to
work around by running
deno lint src/ scripts/anddeno fmt --check src/ scripts/explicitly, which both pass clean. - swamp git sha: 06888df
Workaround
Target specific directories:
deno lint src/ scripts/ and deno fmt --check src/ scripts/
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.