0.0
No commit activity in last 3 years
No release in over 3 years
Count lines of code with granularity and output it various formats
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
>= 0

Runtime

 Project Readme

#Count Von Count

The Count

1! 2! 3! Ah Ah Ah

Count your lines of code and love it

What it is

rake stats and other similiar line counters are rails specific, this counts lines based on a given glob and support proper counting for ruby, js, and coffee

It supports mutliple output formats including json and yaml.

To Install

gem install count_von_count

Or Gemfile, or whatever

Docs

count_von_count count /path/to/dir
#or
cd /path/to/dir
count_von_count

Options

By default, when you point to a project, it will count all the code in default set of directories:

  • app/**/*.rb
  • lib/**/*.rb

And tests in:

  • spec/**/*_spec.rb

If you don't want to include these paths, you can pass --no_default and add a list of custom paths using -c for code paths and -t for test paths. These paths are given relative to the project directory.

If you want to output in a different format other than text, pass -f {yaml,json} to get what you want.

If you want to write the files out to a directory (instead of stdout), pass -o with a path and it will end up in a file called results.txt (or whatever format you choose)