Skip to content

Instantly share code, notes, and snippets.

@justincaldwell
Created January 15, 2013 19:18
Show Gist options
  • Save justincaldwell/4541187 to your computer and use it in GitHub Desktop.
Save justincaldwell/4541187 to your computer and use it in GitHub Desktop.
### Before
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 1115 | 854 | 22 | 94 | 4 | 7 |
| Helpers | 26 | 17 | 0 | 2 | 0 | 6 |
| Models | 2390 | 1494 | 49 | 142 | 2 | 8 |
| Libraries | 396 | 315 | 5 | 27 | 5 | 9 |
| Integration tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Functional tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Unit tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Model specs | 2308 | 1863 | 0 | 7 | 0 | 264 |
| Controller specs | 555 | 423 | 0 | 0 | 0 | 0 |
| Helper specs | 19 | 16 | 0 | 0 | 0 | 0 |
| Library specs | 20 | 16 | 0 | 0 | 0 | 0 |
| Mailer specs | 29 | 22 | 0 | 0 | 0 | 0 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total | 6858 | 5020 | 76 | 272 | 3 | 16 |
+----------------------+-------+-------+---------+---------+-----+-------+
Code LOC: 2680 Test LOC: 2340 Code to Test Ratio: 1:0.9
### After
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 1186 | 908 | 25 | 100 | 4 | 7 |
| Helpers | 26 | 17 | 0 | 2 | 0 | 6 |
| Models | 2147 | 1302 | 51 | 138 | 2 | 7 |
| Libraries | 392 | 327 | 9 | 31 | 3 | 8 |
| Integration tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Functional tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Unit tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Model specs | 2337 | 1886 | 0 | 7 | 0 | 267 |
| Controller specs | 1059 | 854 | 0 | 0 | 0 | 0 |
| Helper specs | 19 | 16 | 0 | 0 | 0 | 0 |
| Library specs | 252 | 211 | 2 | 4 | 2 | 50 |
| Mailer specs | 29 | 22 | 0 | 0 | 0 | 0 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total | 7447 | 5543 | 87 | 282 | 3 | 17 |
+----------------------+-------+-------+---------+---------+-----+-------+
Code LOC: 2554 Test LOC: 2989 Code to Test Ratio: 1:1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment