LOCat
Homepage | Development | Issue Tracker | Mailing List
<img src=“http://travis-ci.org/rubyworks/locat.png” />
DESCRIPTION
LOCat is a fancy Lines-Of-Code analysis tool.
SYNOPSIS
Define a ‘.locat` Ruby script in your project, e.g.
match 'lib/**.rb' do |file, line|
case line
when /^\s*#/
'Comment'
when /^\s*$/
'Blank'
else
'Code'
end
end
match 'test/**.rb' do |file, line|
case line
when /^\s*#/
'Comment'
when /^\s*$/
'Blank'
else
'Test'
end
end
Then run ‘locat`, e.g.
$ locat -o locat.html
COPYRIGHT
Copyright © 2011 Thomas Sawyer, Rubyworks
BSD 2-Clause License
See COPYING.rdoc for details.