aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-02-04 18:07:35 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-02-04 18:07:35 +0900
commit2cd405f34077c2766eda9c3bea75989136eb5f13 (patch)
treea96338c18c3760b9ebf6fdb2b59f24e4b750fa17 /railties
parent250c0d08c4753c6f29956612ea33999f19ee26d6 (diff)
downloadrails-2cd405f34077c2766eda9c3bea75989136eb5f13.tar.gz
rails-2cd405f34077c2766eda9c3bea75989136eb5f13.tar.bz2
rails-2cd405f34077c2766eda9c3bea75989136eb5f13.zip
Revert "Lines of code can be 100,000+ in a Rails app"
This reverts commit 293bd95c3e77275193130bc14c986348aae8b0e2. This broke the header :<
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/code_statistics.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/code_statistics.rb b/railties/lib/rails/code_statistics.rb
index 0997414482..a4e22af45b 100644
--- a/railties/lib/rails/code_statistics.rb
+++ b/railties/lib/rails/code_statistics.rb
@@ -69,12 +69,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)
@@ -82,8 +82,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(6)} " \
- "| #{statistics.code_lines.to_s.rjust(6)} " \
+ "| #{statistics.lines.to_s.rjust(5)} " \
+ "| #{statistics.code_lines.to_s.rjust(5)} " \
"| #{statistics.classes.to_s.rjust(7)} " \
"| #{statistics.methods.to_s.rjust(7)} " \
"| #{m_over_c.to_s.rjust(3)} " \