1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

12 commits

Author SHA1 Message Date
Hendy Tanata
82e345dd7a Improve rake stats for JavaScript and CoffeeScript.
Ignore block comments and calculates number of functions.
2013-02-25 21:08:11 +08:00
George Claghorn
6e0eb9235a Make code statistics rake task handle new test locations properly
As of 2a68f68aea:

- 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.
2012-12-09 00:04:36 -05:00
Arun Agrawal
a48b3f1a68 Add code statistics for Javascript and
CoffeeScript files to `rake stats` task

Orignal PR was #2270

Thanks to @nfm
2012-05-31 16:18:29 +05:30
Pete Higgins
68926dd5ee Remove useless conditional. 2012-03-25 18:20:40 -07:00
Rahul P. Chaudhari
6831ab1110 Used block to make sure file get auto closed after use 2012-01-30 14:43:52 +05:30
Sergey Parizhskiy
d78a7026fc improved code stats calculation, check on multiline comments and rewrite regexps according to a class naming convention 2011-11-23 14:10:30 +02:00
thedarkone
624b118616 Use shorter class-level File methods instead of going through File.stat. 2011-07-25 17:02:28 +02:00
Vijay Dev
548e5bafad fix indentation 2011-05-25 23:47:31 +05:30
Emilio Tagua
63039b9c33 Fix typo and add sanity test for code statistics rake task.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 15:51:29 +02:00
Emilio Tagua
8cfc6012f4 Perf: speed up 2 methods in railties.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-22 18:08:03 -03:00
Santiago Pastorino
b451de0d6d Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
Yehuda Katz + Carl Lerche
f0dd77c6be Move railties/lib/* into railties/lib/* 2009-09-24 16:11:41 -07:00
Renamed from railties/lib/code_statistics.rb (Browse further)