Quick way to calculate lines of code/comments in a collection of Python scripts?
Tomasz Rola
rtomek at ceti.pl
Sun Oct 23 16:51:58 EDT 2016
On Wed, Oct 05, 2016 at 01:56:59PM -0400, Malcolm Greene wrote:
> Looking for a quick way to calculate lines of code/comments in a
> collection of Python scripts. This isn't a LOC per day per developer
> type analysis - I'm looking for a metric to quickly judge the complexity
> of a set of scripts I'm inheriting.
>
> Thank you,
> Malcolm
A bit more than what you asked for (and sorry for being late) but I
find sloccount quite good. Or at least interesting (computes sloc and
some stats about project, given project dir or a single file with
code):
http://www.dwheeler.com/sloccount/
--
Regards,
Tomasz Rola
--
** A C programmer asked whether computer had Buddha's nature. **
** As the answer, master did "rm -rif" on the programmer's home **
** directory. And then the C programmer became enlightened... **
** **
** Tomasz Rola mailto:tomasz_rola at bigfoot.com **
More information about the Python-list
mailing list