summaryrefslogtreecommitdiff
path: root/rake_tasks/statistic.rake
blob: 08f8a0ef06072a821f472a511c191f42e954c54d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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/**'],
    ['Functional Tests', 'test/functional/**'],
    ['Scanner Tests', 'test/scanners/**', /suite\.rb$/],
    #['  Test Data', 'test/scanners/**', /\.in\./, false],
    ['Demos', 'sample/**']
  ).print
end