Sha256: 4f948e24a8487241b77f3fec7a128c5a5832e439a0a87827518fea157ac925b3
Contents?: true
Size: 1.88 KB
Versions: 1
Compression:
Stored size: 1.88 KB
Contents
# RailsStats See stuff about a Rails app. ```bash $ bundle exec thor stats:calculate ~/path/to/app/ Directory: ~/path/to/app/ +----------------------+-------+-------+---------+---------+-----+-------+ | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | +----------------------+-------+-------+---------+---------+-----+-------+ | Controllers | 1848 | 1483 | 32 | 174 | 5 | 6 | | Helpers | 2257 | 1892 | 45 | 245 | 5 | 5 | | Jobs | 399 | 295 | 11 | 33 | 3 | 6 | | Models | 4584 | 3509 | 61 | 526 | 8 | 4 | | Observers | 42 | 22 | 2 | 5 | 2 | 2 | | Libraries | 2987 | 2272 | 30 | 287 | 9 | 5 | | Configuration | 1233 | 669 | 4 | 17 | 4 | 37 | | Spec Support | 1416 | 1152 | 4 | 30 | 7 | 36 | | Integration Tests | 91 | 73 | 0 | 1 | 0 | 71 | | Lib Tests | 101 | 83 | 0 | 1 | 0 | 81 | | Model Tests | 3397 | 2522 | 0 | 18 | 0 | 138 | | Cucumber Support | 739 | 521 | 0 | 1 | 0 | 519 | | Cucumber Features | 2711 | 2487 | 29 | 145 | 5 | 15 | +----------------------+-------+-------+---------+---------+-----+-------+ | Total | 21805 | 16980 | 218 | 1483 | 6 | 9 | +----------------------+-------+-------+---------+---------+-----+-------+ Code LOC: 10142 Test LOC: 6838 Code to Test Ratio: 1:0.7 ``` ### TODO * option to print out by app directory (stats per engine) * Add views (jbuilder, erb, haml) but don't count towards ratios * Support JS for projects that have it in public * Add css but don't count towards ratios * output other metrics like number of tables and columns * test unit support
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_stats-0.0.4 | README.md |