Skip to content

Instantly share code, notes, and snippets.

@chaslemley
Created April 19, 2012 15:35
Show Gist options
  • Save chaslemley/2421775 to your computer and use it in GitHub Desktop.
Save chaslemley/2421775 to your computer and use it in GitHub Desktop.
Before:
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 3276 | 2474 | 50 | 249 | 4 | 7 |
| Helpers | 329 | 268 | 0 | 36 | 0 | 5 |
| Models | 5594 | 4084 | 73 | 462 | 6 | 6 |
| Libraries | 1293 | 1057 | 21 | 121 | 5 | 6 |
| Model specs | 5784 | 4553 | 0 | 34 | 0 | 131 |
| Controller specs | 1460 | 1174 | 0 | 20 | 0 | 56 |
| Helper specs | 224 | 173 | 0 | 0 | 0 | 0 |
| Library specs | 397 | 325 | 0 | 12 | 0 | 25 |
| Mailer specs | 266 | 219 | 0 | 3 | 0 | 71 |
| Routing specs | 235 | 174 | 0 | 0 | 0 | 0 |
| Request specs | 9 | 8 | 0 | 0 | 0 | 0 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total | 18867 | 14509 | 144 | 937 | 6 | 13 |
+----------------------+-------+-------+---------+---------+-----+-------+
Code LOC: 7883 Test LOC: 6626 Code to Test Ratio: 1:0.8
After:
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 3397 | 2560 | 53 | 257 | 4 | 7 |
| Helpers | 378 | 301 | 0 | 42 | 0 | 5 |
| Models | 5859 | 4237 | 75 | 479 | 6 | 6 |
| Libraries | 1321 | 1071 | 21 | 122 | 5 | 6 |
| Model specs | 6245 | 4899 | 0 | 35 | 0 | 137 |
| Controller specs | 1526 | 1225 | 0 | 22 | 0 | 53 |
| Helper specs | 272 | 219 | 0 | 0 | 0 | 0 |
| Library specs | 432 | 355 | 0 | 12 | 0 | 27 |
| Mailer specs | 310 | 251 | 0 | 3 | 0 | 81 |
| Routing specs | 301 | 225 | 0 | 0 | 0 | 0 |
| Request specs | 9 | 8 | 0 | 0 | 0 | 0 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total | 20050 | 15351 | 149 | 972 | 6 | 13 |
+----------------------+-------+-------+---------+---------+-----+-------+
Code LOC: 8169 Test LOC: 7182 Code to Test Ratio: 1:0.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment