From 458af2b3548de96e9ff79772dfbdf87794285c62 Mon Sep 17 00:00:00 2001 From: murphy Date: Mon, 7 Mar 2011 22:45:51 +0000 Subject: minor code cleanup in code_statistics.rb --- rake_helpers/code_statistics.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'rake_helpers/code_statistics.rb') 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 -- cgit v1.2.1