From b32bc04a6f5dfca5db098a684ece32af672f995e Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 29 Jun 2010 06:33:49 +0000 Subject: Fixed code statistics (added executable and unit tests, removed double counting of coderay.rb). --- rake_tasks/statistic.rake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rake_tasks/statistic.rake b/rake_tasks/statistic.rake index 08f8a0e..b66a4ab 100644 --- a/rake_tasks/statistic.rake +++ b/rake_tasks/statistic.rake @@ -2,15 +2,17 @@ desc 'Report code statistics (LOC) from the application' task :stats do require 'rake_helpers/code_statistics' CodeStatistics.new( - ['Main', 'lib'], - ['CodeRay', 'lib/{.,coderay}/'], + ['Main', 'lib', /coderay.rb$/], + ['CodeRay', 'lib/coderay/'], [' Scanners', 'lib/coderay/scanners/**'], [' Encoders', 'lib/coderay/encoders/**'], [' Helpers', 'lib/coderay/helpers/**'], [' Styles', 'lib/coderay/styles/**'], + ['Executable Tests', 'test/executable/**'], ['Functional Tests', 'test/functional/**'], ['Scanner Tests', 'test/scanners/**', /suite\.rb$/], - #[' Test Data', 'test/scanners/**', /\.in\./, false], + ['Unit Tests', 'test/unit/**'], + # [' Test Data', 'test/scanners/**', /\.in\./, false], ['Demos', 'sample/**'] ).print end -- cgit v1.2.1