diff options
author | Akira Matsuda <ronnie@dio.jp> | 2015-03-01 17:42:37 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2015-03-01 17:57:03 +0900 |
commit | 293bd95c3e77275193130bc14c986348aae8b0e2 (patch) | |
tree | a42104a1aaecbb33e863ca2e6e8c837906b114b6 | |
parent | 22e0a22d5f98e162290d9820891d8191e720ad3b (diff) | |
download | rails-293bd95c3e77275193130bc14c986348aae8b0e2.tar.gz rails-293bd95c3e77275193130bc14c986348aae8b0e2.tar.bz2 rails-293bd95c3e77275193130bc14c986348aae8b0e2.zip |
Lines of code can be 100,000+ in a Rails app
Actually, our app has 400,000 LOC :boom:
-rw-r--r-- | railties/lib/rails/code_statistics.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/code_statistics.rb b/railties/lib/rails/code_statistics.rb index 0bdf63943f..583d005d46 100644 --- a/railties/lib/rails/code_statistics.rb +++ b/railties/lib/rails/code_statistics.rb @@ -71,12 +71,12 @@ class CodeStatistics #:nodoc: def print_header print_splitter - puts "| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |" + puts "| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |" print_splitter end def print_splitter - puts "+----------------------+-------+-------+---------+---------+-----+-------+" + puts "+----------------------+--------+--------+---------+---------+-----+-------+" end def print_line(name, statistics) @@ -84,8 +84,8 @@ class CodeStatistics #:nodoc: loc_over_m = (statistics.code_lines / statistics.methods) - 2 rescue loc_over_m = 0 puts "| #{name.ljust(20)} " \ - "| #{statistics.lines.to_s.rjust(5)} " \ - "| #{statistics.code_lines.to_s.rjust(5)} " \ + "| #{statistics.lines.to_s.rjust(6)} " \ + "| #{statistics.code_lines.to_s.rjust(6)} " \ "| #{statistics.classes.to_s.rjust(7)} " \ "| #{statistics.methods.to_s.rjust(7)} " \ "| #{m_over_c.to_s.rjust(3)} " \ |