Skip to content

God-folder watcher (pattern 07's third gate — resubmit) - #29

Merged
astrapi69 merged 1 commit into
mainfrom
feature/godfolder-gate-resubmit
Jun 29, 2026
Merged

astrapi69 merged 1 commit into
mainfrom
feature/godfolder-gate-resubmit

Conversation

@astrapi69

Copy link
Copy Markdown
Owner

Closes #28

Resubmit: this commit was on #27's branch but did not make the merge (timing — #27 merged at the complexity-only head). Re-applies it cleanly onto main.

scripts/check-directory-size.sh: warns when a directory under frontend/src holds >15 flat .ts/.tsx files (tests excluded), with a --gate ratchet vs .dirsize-baseline (may only shrink; a NEW oversized dir fails). Seeded: components/ (58, EXAMPLE-DOMAIN) + hooks/ (16). make check-directory-size / check-directory-size-gate. Verified exit 0.

With this, pattern 07's cohesion + complexity(radon) + god-folder watchers all ship; only the eslint/TS complexity half remains (the eslint-config PR activates it).

…28)

scripts/check-directory-size.sh: warns when a directory under frontend/src
holds >15 flat *.ts/*.tsx source files (tests excluded), with a --gate
ratchet vs .dirsize-baseline (may only shrink; a NEW oversized dir fails).
Seeded baseline: components/ (58, EXAMPLE-DOMAIN) + hooks/ (16). Pure bash,
additive. make check-directory-size / check-directory-size-gate.

With this, pattern 07's cohesion + complexity(radon) + god-folder watchers
all ship; only the eslint/TS complexity half remains (needs a flat config).

Closes #28
@astrapi69
astrapi69 merged commit 69f0ebf into main Jun 29, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

God-folder watcher (pattern 07, third gate)

2 participants