summaryrefslogtreecommitdiff
path: root/rake_tasks
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-06-29 06:33:49 +0000
committermurphy <murphy@rubychan.de>2010-06-29 06:33:49 +0000
commitb32bc04a6f5dfca5db098a684ece32af672f995e (patch)
tree375c2a047b764c87667e0e517500bef217ce8029 /rake_tasks
parent93dfad17309f46d00d1043592efdb282d13963fe (diff)
downloadcoderay-b32bc04a6f5dfca5db098a684ece32af672f995e.tar.gz
Fixed code statistics (added executable and unit tests, removed double counting of coderay.rb).
Diffstat (limited to 'rake_tasks')
-rw-r--r--rake_tasks/statistic.rake8
1 files 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