Sha256: 15db8ca12bec06728c86f30983b910b1a42d1b37b0a50e02f4a037bb268eebb6

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

# LOCat

[Homepage](http://rubyworks.github.com/locat) |
[Development](http://github.com/rubyworks/locat) |
[Issue Tracker](http://github.com/rubyworks/locat/issues) |
[Mailing List](http://groups.google.com/group/rubyworks-mailinglist)

[<img src="http://travis-ci.org/rubyworks/locat.png" />](http://travis-ci.org/rubyworks/locat)


## 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

The config file can also be located at `etc/locat.rb` or `config/locat.rb`.


## COPYRIGHT

Copyright (c) 2011 Rubyworks

BSD 2-Clause License

See LICENSE.md for details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locat-0.2.4 README.md
locat-0.2.3 README.md