Tracking Unused Code

Ruby tools for tracking unused code:

  • debride does some static analysis
  • rcov builds reports of what lines get executed arbitrarily (typically would be run on your test suite)
  • coverband runs rcov in production to show what code is actually being used by users, rather than just tests.

About

Avatar of Author

Jamie Macey is a senior software engineer with over 15 years experience in the Ruby and Rails ecosystems, largely on the back-end.

Husband, father, gamer, and all-around geek. Ask about my latest 3d print, or toy software project.