Debian Codegraph @

rake_tasks/statistic.rake

raw
1 desc 'Report code statistics (LOC) from the application'
2 task :stats do
3 require './rake_tasks/code_statistics'
4 CodeStatistics.new(
5 ['Main', 'lib', /coderay.rb$/],
6 ['CodeRay', 'lib/coderay/'],
7 [' Scanners', 'lib/coderay/scanners/**'],
8 [' Encoders', 'lib/coderay/encoders/**'],
9 [' Helpers', 'lib/coderay/helpers/**'],
10 [' Styles', 'lib/coderay/styles/**'],
11 ['Executable', 'bin', /coderay$/],
12 ['Executable Tests', 'test/executable/**'],
13 ['Functional Tests', 'test/functional/**'],
14 ['Scanner Tests', 'test/scanners/**', /suite\.rb$/],
15 ['Unit Tests', 'test/unit/**'],
16 # [' Test Data', 'test/scanners/**', /\.in\./, false],
17 ['Demos', 'sample/**']
18 ).print
19 end