rake stats

rake stats is a useful command line tool to give a high level overview of the state of an app:

  # $ rake stats

  +----------------------+-------+-------+---------+---------+-----+-------+
  | Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
  +----------------------+-------+-------+---------+---------+-----+-------+
  | Controllers          |  1234 |  1060 |      28 |     165 |   5 |     4 |
  | Helpers              |   456 |   392 |       0 |      48 |   0 |     6 |
  | Models               |  2406 |  2013 |      78 |     224 |   2 |     6 |
  | Mailers              |   117 |    99 |       4 |       9 |   2 |     9 |
  | Javascripts          |   261 |   182 |       0 |      43 |   0 |     2 |
  | Libraries            |   509 |   467 |       1 |      32 |  32 |    12 |
  | Model specs          |  2716 |  2253 |       0 |       0 |   0 |     0 |
  | View specs           |   163 |   137 |       0 |       0 |   0 |     0 |
  | Feature specs        |  2570 |  2325 |       0 |      14 |   0 |   164 |
  | Controller specs     |   112 |    99 |       0 |       0 |   0 |     0 |
  +----------------------+-------+-------+---------+---------+-----+-------+
  | Total                | 10544 |  9027 |     111 |     535 |   4 |    14 |
  +----------------------+-------+-------+---------+---------+-----+-------+
    Code LOC: 4213     Test LOC: 4814     Code to Test Ratio: 1:1.1
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s