Skip to content

magnetised/locat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LOCat

DESCRIPTION

LOCat is a fancy Lines-Of-Code analysis tool.

RESOURCES

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 © 2011 Thomas Sawyer, Rubyworks

BSD 2-Clause License

See COPYING.rdoc for details.

Packages

No packages published

Languages

  • Ruby 91.6%
  • JavaScript 8.4%