Menu

Our code cites a 218-line specification 101 times, and the file was deleted two days after it was written
📰

Our code cites a 218-line specification 101 times, and the file was deleted two days after it was written

DEV Community: typescript·Daniel Pertu·about 22 hours ago
#oih02KCc
#devtotypescript#devto#dev#munchable#comment
Reading 0:00
15s threshold

Munchable is a barcode scanner for people with gut conditions. The public face of its rules engine is a condition guide per condition, for example munchable.app/conditions/coeliac-disease , plus a few hundred single-question pages indexed at munchable.app/answers . The package behind all of those is packages/rules-engine .

It is also the part of the repository that cites a document which is not in the repository, 64 times.

I did not go looking for that. I went looking for something duller.

The audit

Comments name files constantly. "See lib/x.ts ". "Generated by scripts/y.mts ". "The shape is in types.ts ". Those references are the only cross-links a codebase has that no compiler, bundler or linter ever reads. A broken import fails the build. A broken sentence about an import fails nothing.

So the question was: how many are there, and how many still resolve?

The scanner is about thirty lines of Python.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.