Every repository with this icon (
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Fri Jul 03 17:56:40 -0700 2009 | |
| |
README.textile | Fri Jul 03 17:56:40 -0700 2009 | |
| |
Rakefile | Fri Jul 03 17:56:40 -0700 2009 | |
| |
dead_code.example.rb | Fri Jul 03 17:56:40 -0700 2009 | |
| |
init.rb | Fri Jul 03 17:56:40 -0700 2009 | |
| |
install.rb | Fri Jul 03 17:56:40 -0700 2009 | |
| |
lib/ | Fri Jul 03 17:56:40 -0700 2009 | |
| |
tasks/ | Fri Jul 03 17:56:40 -0700 2009 | |
| |
test/ | Fri Jul 03 17:56:40 -0700 2009 | |
| |
uninstall.rb | Fri Jul 03 17:56:40 -0700 2009 |
Old Yeller
is dead.
You know Frank Sinatra?
He’s dead.
Large chunks of your existing code base?
Dead.
OldYeller is a tool to track down dead code in Rails applications. It sizes
your application up and let’s you know which methods, partials, views, or
classes are never called.
To use Old Yeller, copy ./dead_code.rb.example to your RAILS_ROOT, modify
any parameters that need it and run
rake old_yeller
He’s dead, Jim
Old Yeller works by generating tests from config/routes to request every
accessible page. These tests are run through RCov to generate a report on
which app code is used or not used. Tooling is added to
ActionView::Template to determine which templates are actually rendered.
Requirements
Proper care and feeding of Old Yeller is facilitated by a couple of gems:
- Shoulda
- RCov
- Rails
Copyright © 2009 Ben Hughes <ben@pixelmachine.org>, released under the MIT license







