aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/code_statistics.rb
Commit message (Collapse)AuthorAgeFilesLines
* bugfix CodeStatics#calculate_directory_statics when dir has source extensionPablo Vizcay2015-04-091-4/+2
|
* Lines of code can be 100,000+ in a Rails appAkira Matsuda2015-03-011-4/+4
| | | | Actually, our app has 400,000 LOC :boom:
* Drop old test locations from `rake stats`brainopia2015-01-091-3/+1
| | | | | - test/functional - test/unit
* Add test/jobs files in `rake stats`Arun Agrawal2014-11-051-0/+1
|
* Improve `rake stats` for JavaScript and CoffeeScript.Hendy Tanata2013-02-251-46/+22
| | | | Ignore block comments and calculates number of functions.
* Make code statistics rake task handle new test locations properlyGeorge Claghorn2012-12-091-1/+7
| | | | | | | | | | | | | | | As of 2a68f68aead9fd65ecac8062ca8efc15f5bab418: - Unit tests are now in test/models, instead of test/units - Functional tests are now in test/controllers, instead of test/functional - Helper tests are now in test/helpers, instead of test/units/helpers - Mailer tests are now in test/mailers, instead of test/functional Update the rake task for code statistics (`rake stats`) so that it recognizes files in the above locations as tests, and accurately calculates statistics such as "Test LOC" and "Code to Test Ratio." Safely handle Rails apps that still have tests in the old locations.
* Add code statistics for Javascript andArun Agrawal2012-05-311-2/+9
| | | | | | | CoffeeScript files to `rake stats` task Orignal PR was #2270 Thanks to @nfm
* Remove useless conditional.Pete Higgins2012-03-251-7/+1
|
* Used block to make sure file get auto closed after useRahul P. Chaudhari2012-01-301-14/+16
|
* improved code stats calculation, check on multiline comments and rewrite ↵Sergey Parizhskiy2011-11-231-3/+14
| | | | regexps according to a class naming convention
* Use shorter class-level File methods instead of going through File.stat.thedarkone2011-07-251-1/+1
|
* fix indentationVijay Dev2011-05-251-1/+1
|
* Fix typo and add sanity test for code statistics rake task.Emilio Tagua2010-09-241-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Perf: speed up 2 methods in railties.Emilio Tagua2010-09-221-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-4/+4
| | | | 's/[ \t]*$//' -i {} \;)
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+107