A simple, command-line SLOC counter written in Lua.
wget https://github.com/craigbarnes/tally/releases/download/0.0.5/tally-0.0.5.tar.gz tar xzvf tally-0.0.5.tar.gz cd tally-0.0.5 sudo make install
By default, running
tally will count every file in every subdirectory
below the current working directory. You can change this by specifying files
and/or directories as arguments on the command-line, for example:
tally dir1/ file1.c file2.py
Paths starting with a dot character (e.g.
.git) are excluded, unless
.gitconfig alias for git users is:
[alias] tally = !git rev-parse && tally $(git ls-files)
...which first checks that the current directory is within a repository, and if it is, counts only the files that are checked in.
- Common Lisp
- Emacs Lisp
- Protocol Buffer
- Visual Basic
Copyright (C) 2012-2014 Craig Barnes
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more details.