1

Is there a tool or snippet that produces the following output in some form:

lines_of_code = 98
lines_of_comments = 24
lines_of_documentation = 11

NOTE 1: I will then try to feed this data to Jenkins to graph.

NOTE 2: I am aware that CLOC counts comments but I would like to separately count comments and docstrings.

muhuk
  • 15,777
  • 9
  • 59
  • 98
  • I think it's feasible to write a simple script to do this calculation, if those 3 are what you need. –  Jul 20 '11 at 10:14

1 Answers1

3

Look at PyLint: http://www.logilab.org/857