File: statistic.rake

package info (click to toggle)
coderay 1.1.3-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,368 kB
  • sloc: ruby: 9,987; makefile: 14; sh: 4; python: 1
file content (19 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
desc 'Report code statistics (LOC) from the application'
task :stats do
  require './rake_tasks/code_statistics'
  CodeStatistics.new(
    ['Main', 'lib', /coderay.rb$/],
    ['CodeRay', 'lib/coderay/'],
    ['  Scanners', 'lib/coderay/scanners/**'],
    ['  Encoders', 'lib/coderay/encoders/**'],
    ['  Helpers', 'lib/coderay/helpers/**'],
    ['  Styles', 'lib/coderay/styles/**'],
    ['Executable', 'bin', /coderay$/],
    ['Executable Tests', 'test/executable/**'],
    ['Functional Tests', 'test/functional/**'],
    ['Scanner Tests', 'test/scanners/**', /suite\.rb$/],
    ['Unit Tests', 'test/unit/**'],
    # ['  Test Data', 'test/scanners/**', /\.in\./, false],
    ['Demos', 'sample/**']
  ).print
end