counting lines of code
michele.simionato at gmail.com
Thu Jan 21 08:20:13 CET 2010
On Jan 21, 8:12 am, Ben Finney <ben+pyt... at benfinney.id.au> wrote:
> Michele Simionato <michele.simion... at gmail.com> writes:
> > I need a small utility to count the lines of Python code in a
> > directory, traversing subdirectories and ignoring comments and
> > docstrings. I am sure there is already something doing that, what do
> > you suggest?
> Any of the static code checkers (‘pylint’, ‘pyflakes’, etc.) would
> already be doing this.
pylint does too many things, I want something fast that just counts
the lines and can be run on thousands of files at once.
cloc seems fine, I have just tried on 2,000 files and it gives me a
report in just a few seconds.
More information about the Python-list