rake stats (again)

June 8th, 2009

用Ruby翻新一个Java的系统。原来系统功能代码47311行,测试代码13440行(都只计算Java代码)。还没翻完。

+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers          |  1403 |  1188 |      31 |     131 |   4 |     7 |
| Helpers              |   361 |   311 |       0 |      52 |   0 |     3 |
| Models               |  2236 |  1837 |      77 |     270 |   3 |     4 |
| Libraries            |  2115 |  1740 |      30 |     156 |   5 |     9 |
| Model specs          |  2443 |  2022 |       0 |      18 |   0 |   110 |
| View specs           |     0 |     0 |       0 |       0 |   0 |     0 |
| Controller specs     |  3315 |  2716 |       0 |       2 |   0 |  1356 |
| Helper specs         |   374 |   310 |       0 |       0 |   0 |     0 |
| Library specs        |   822 |   708 |       0 |       3 |   0 |   234 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total                | 13069 | 10832 |     138 |     632 |   4 |    15 |
+----------------------+-------+-------+---------+---------+-----+-------+
  Code LOC: 5076     Test LOC: 5756     Code to Test Ratio: 1:1.1

这次是JRuby on Rails。我特别喜欢它的部署脚本。

blog comments powered by Disqus