summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rake_helpers/code_statistics.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/rake_helpers/code_statistics.rb b/rake_helpers/code_statistics.rb
index 595848f..0a2016b 100644
--- a/rake_helpers/code_statistics.rb
+++ b/rake_helpers/code_statistics.rb
@@ -76,10 +76,14 @@ private
in_comment_block = false
when in_comment_block
comment_lines += 1
- when /^\s*class\b/: classes += 1
- when /^\s*module\b/: modules += 1
- when /^\s*def\b/: methods += 1
- when /^\s*#/: comment_lines += 1
+ when /^\s*class\b/
+ classes += 1
+ when /^\s*module\b/
+ modules += 1
+ when /^\s*def\b/
+ methods += 1
+ when /^\s*#/
+ comment_lines += 1
when /^=begin\b/
in_comment_block = false
comment_lines += 1