summaryrefslogtreecommitdiff
path: root/rake_tasks/statistic.rake
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-04-16 00:38:38 +0000
committermurphy <murphy@rubychan.de>2006-04-16 00:38:38 +0000
commitee808b400543d924286eebaee8ed1ad8a4e28ced (patch)
tree3aa0bf9eaa9aa328979d06c49a2f6bb03c7af5af /rake_tasks/statistic.rake
parent915a4ade8840f076b2ad2681944ab845ef038f0c (diff)
downloadcoderay-ee808b400543d924286eebaee8ed1ad8a4e28ced.tar.gz
Rake tasks completely redone.
rdoctask2.rb deleted; issues were fixed as of Rake 0.7.0.
Diffstat (limited to 'rake_tasks/statistic.rake')
-rw-r--r--rake_tasks/statistic.rake14
1 files changed, 14 insertions, 0 deletions
diff --git a/rake_tasks/statistic.rake b/rake_tasks/statistic.rake
new file mode 100644
index 0000000..6114547
--- /dev/null
+++ b/rake_tasks/statistic.rake
@@ -0,0 +1,14 @@
+desc 'Report code statistics (LOC) from the application'
+task :stats do
+ require 'rake_helpers/code_statistics'
+ CodeStatistics.new(
+ ['Main', 'lib'],
+ ['CodeRay', 'lib/coderay/'],
+ [' Scanners', 'lib/coderay/scanners/**'],
+ [' Encoders', 'lib/coderay/encoders/**'],
+ [' Helpers', 'lib/coderay/helpers/**'],
+ [' Styles', 'lib/coderay/styles/**'],
+ ['Test', 'test/**', /\/\w+.rb$/],
+ ['Demo Tests', 'demo/**']
+ ).print
+end