Orphaned file detection

This post is published externally at https://medium.com/@MrJamesFisher/orphaned-file-detection-de307d96d5e1 external link.

How many old files in your repository could be removed without breaking anything? A significant number, if your repository is non-trivial. Humans are terrible at garbage collection, because orphaning doesn’t break test suites and doesn’t show up in code review. But how about if your CI process was able to tell you: “This commit might have orphaned these files: /src/server/baz.py, /src/client/baz.js”?

Get updates on Twitter

I wrote this because I felt like it. This post is not associated with my employer. This site is hosted by Netlify (who are great, but I'm not associated with them either).