tinypilot icon indicating copy to clipboard operation
tinypilot copied to clipboard

Detect orphaned files automatically

Open jotaen4tinypilot opened this issue 2 years ago • 0 comments

We recently detected orphaned files that weren’t in use for more than a year.

This could easily happen for all asset classes, like .js or .css files, and not just for images.

We could come up with a solution that would report orphaned files during the build. A simple solution I could think of would be to do a full-text search for the paths of all asset files in the code base. That could theoretically create false alerts, but maybe it works sufficiently. (So maybe worth a shot.)

jotaen4tinypilot avatar Nov 08 '22 15:11 jotaen4tinypilot