summaryrefslogtreecommitdiff
path: root/rake_tasks/statistic.rake
diff options
context:
space:
mode:
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