GithubHelp home page GithubHelp logo

locat's Introduction

LOCat

Homepage | Development | Issue Tracker | Mailing List

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.

locat's People

Contributors

trans avatar magnetised avatar

Stargazers

Angus H. avatar Benjamin Fleischer avatar Mario Vejlupek avatar Chris Westbrook avatar Arthur Chiu avatar  avatar Philip (flip) Kromer avatar mech avatar RailsFactory avatar Mike avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

magnetised

locat's Issues

Ruby errors

Two errors:

gems/locat-0.1.0/lib/locat/template.rb:67 - can't convert nil into String could be fixed with a to_s

gems/locat-0.1.0/lib/locat/gitloc.rb:85 - undefined method 'to_date' for Fri Jul 08 16:26:48 +1200 2011:Time

Separate Ratio Totals Chart

Should make the Ratio Totals as separate chart. Maybe make it a selectable option at the bottom near the chart type.

Doesn't depend on grit

Installed it on a machine that didn't already have grit installed. Upon running it I got a require error for grit.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.