summaryrefslogtreecommitdiff
path: root/rake_tasks/statistic.rake
blob: 4923ed1a4f725679024a0747f13c6321018dda51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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'],
    ['  Test Data', 'test/*/**', /\.in\./, false],
    ['Demo Tests', 'demo/**']
  ).print
end