aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-13 11:04:14 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-13 11:07:13 -0300
commitd02adfaa4d04754e5c892e82f7cdbb5815cd66e1 (patch)
treeb0f9051d5de873e9f9d8330adc4ab60eb6adc440 /tools
parent911e7094bd5946dbcdcea4a33ac564cb7ddf6215 (diff)
downloadrails-d02adfaa4d04754e5c892e82f7cdbb5815cd66e1.tar.gz
rails-d02adfaa4d04754e5c892e82f7cdbb5815cd66e1.tar.bz2
rails-d02adfaa4d04754e5c892e82f7cdbb5815cd66e1.zip
line_statistics is not an executable
Also add documentation on it
Diffstat (limited to 'tools')
-rw-r--r--tools/README.md1
-rw-r--r--[-rwxr-xr-x]tools/line_statistics3
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/README.md b/tools/README.md
index 6501aae441..13be763dac 100644
--- a/tools/README.md
+++ b/tools/README.md
@@ -4,5 +4,4 @@ This is a collection of utilities used for Rails internal development.
They aren't used by Rails apps directly.
* `console` drops you in irb and loads this local Rails repos
- * `line_statistics` gives lines-of-code counts for our codebase
* `profile` profiles `Kernel#require` to help reduce startup times
diff --git a/tools/line_statistics b/tools/line_statistics
index 5eb5cfdc3d..bfa921b095 100755..100644
--- a/tools/line_statistics
+++ b/tools/line_statistics
@@ -1,4 +1,5 @@
-#!/usr/bin/env ruby
+# Class used to calculates LOC for a provided file list.
+#
# Example:
# files = FileList["lib/active_record/**/*.rb"]
# CodeTools::LineStatistics.new(files).print_loc