diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2015-10-28 16:43:10 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <github@arthurnn.com> | 2015-10-28 16:43:10 -0400 |
commit | 367e4832294c35091ab0928df52e700d9710af7e (patch) | |
tree | 88aa12d2af6af11123f61e9e8862a48e9777cd0d /railties/lib/rails/code_statistics_calculator.rb | |
parent | f7d0a3ba7e9e676d399e7aeed7485a8bf03992f8 (diff) | |
parent | 3e3f3563b826bc934448c9a6c25d940df4ba073a (diff) | |
download | rails-367e4832294c35091ab0928df52e700d9710af7e.tar.gz rails-367e4832294c35091ab0928df52e700d9710af7e.tar.bz2 rails-367e4832294c35091ab0928df52e700d9710af7e.zip |
Merge pull request #21998 from kddeisz/rake_task_statistics
Allow rake:stats to account for rake tasks
Diffstat (limited to 'railties/lib/rails/code_statistics_calculator.rb')
-rw-r--r-- | railties/lib/rails/code_statistics_calculator.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/code_statistics_calculator.rb b/railties/lib/rails/code_statistics_calculator.rb index a142236dbe..fad13e8517 100644 --- a/railties/lib/rails/code_statistics_calculator.rb +++ b/railties/lib/rails/code_statistics_calculator.rb @@ -25,6 +25,7 @@ class CodeStatisticsCalculator #:nodoc: } PATTERNS[:minitest] = PATTERNS[:rb].merge method: /^\s*(def|test)\s+['"_a-z]/ + PATTERNS[:rake] = PATTERNS[:rb] def initialize(lines = 0, code_lines = 0, classes = 0, methods = 0) @lines = lines |