# Detecting dead/unreachable code

**URL:** <https://discuss.rubyonrails.org/t/detecting-dead-unreachable-code/25768>\
**Category:** rubyonrails-talk\
**Created:** [March 3, 2008, 10:23pm UTC](https://discuss.rubyonrails.org/t/detecting-dead-unreachable-code/25768 "2008-03-03T22:23:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamie1](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jamie1](https://discuss.rubyonrails.org/u/jamie1)\
**Post date:** [March 3, 2008, 10:23pm UTC](https://discuss.rubyonrails.org/t/detecting-dead-unreachable-code/25768/1 "2008-03-03T22:23:21Z")

</div>

Is anyone aware of a tool for detecting dead/unreachable code in an RonR app?

---

<div class="post-metadata">

**Author:** ![Robby\_Russell2](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Robby\_Russell2](https://discuss.rubyonrails.org/u/Robby_Russell2)\
**Post date:** [March 3, 2008, 11:06pm UTC](https://discuss.rubyonrails.org/t/detecting-dead-unreachable-code/25768/2 "2008-03-03T23:06:24Z")

</div>

One way to tell if there is dead/unreachable code is to have good test- coverage. Then you could use rcov to see what areas of your application has proper test coverage or not.
