Giter Site home page Giter Site logo

seancurtis-tri / git_cloc Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 16 KB

A simple script to report lines-of-code counts between git versions. It distinguishes between code, comment, and blank lines on a huge set of programming language types.

License: Other

Python 100.00%

git_cloc's People

Contributors

ericcousineau-tri avatar seancurtis-tri avatar

Watchers

 avatar

git_cloc's Issues

python3 upgrade?

Was re-examining. (Can't remember if there was a better tool found)

Tried this out, but broke w/ Python 2. Too lazy to debug issue.

Odd result for up-to-date branch

Thanks, @SeanCurtis-TRI this works very nicely! I ran into a minor glitch (harmless though):

I ran git_cloc in a branch that was current with master. It crunched for 20s, then gave this output:

sherm@ubuntu:~/Documents/GitHub/sherm1/drake-distro2 (caching-base)$ git_cloc
Computing difference between $(git merge-base master HEAD) (5abc04c) and 'HEAD' (5abc04c).

2 errors:
Diff error (quoted comments?):  /tmp/aIReUKYBiS/tools/lint/test/formatter_test.py
Diff error (quoted comments?):  /tmp/Vm9eEig_tB/tools/lint/test/formatter_test.py
Category            added  modified  removed  
----------------------------------------------
code                0      0         0        
comments            0      0         0        
blank               0      0         0        
----------------------------------------------
TOTAL               0      0         0        

The final result is correct, though there seemed to be some agony getting there!

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.