Project

rdepend

0.0
No commit activity in last 3 years
No release in over 3 years
a work in progress, use it at your own risk
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

 Project Readme

Ꝛdepend

Mind that this Gem is experimental, a work in progress. If you happen to encounter bugs or like to discuss the output or it's use cases, please open an issue in the issue tracker.

It generates a graph visualization of the dependencies in your codebase.

A lot of incoming links is good, as it is a sign of code re-use and DRY code. A lot of outgoing links is bad, as that is a sign of a lot of dependencies.

See http://www.whiteboxtest.com/information-flow-metrics.php

Installation

This Gem depends on Graphviz, http://www.graphviz.org/

Add this line to your application's Gemfile:

gem 'rdepend'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rdepend

Usage

Rdepend.with_trace do
  # your code
end

or

Rdepend.trace
# your code

Don't even think about using this Gem in a production environment. You can use it in your integration test suite for instance. But don't use it in a test environment where you use stubs, mocks and doubles etc.

Oh, and it can take a very long time, even on a simple Rails project.

Contributing

  1. Fork it ( https://github.com/suhrawardi/rdepend/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request