Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-04

Source code rows count

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi all,

Is there a way to know how many rows of source code there are on a project? I mean a way to know some things:

1) Full lines count (all units + all comments)

2) Only "custom" units with comments

3) Only "custom" units without comments (this is the most important for me)

Thank you!
Kjow

Reply by email

Andreas Schneider
to Kjow
Kjow wrote 13 lines
Hi all, Is there a way to know how many rows of source code there are on a project? I mean a way to know some things: 1) Full lines count (all units + all comments) 2) Only "custom" units with comments 3) Only "custom" units without comments (this is the most important for me) Thank you! Kjow

Personal preference: SourceMonitor[1]
It's a windows tool but runs perfectly under wine, if you need it on Linux/MacOS.

Best Regards,
Andreas.

[1] http://www.campwoodsw.com/sourcemonitor.html

Reply by email

Alexander Klenin
to Kjow: Is there a way to know how many rows of source code there are on a project? I mean a way…
Kjow wrote 13 lines
Hi all, Is there a way to know how many rows of source code there are on a project? I mean a way to know some things: 1) Full lines count (all units + all comments) 2) Only "custom" units with comments 3) Only "custom" units without comments (this is the most important for me) Thank you! Kjow

This might be a reasonable feature request.
I wonder if SynEdit's folding code may be re-used to gather statistics about folded lines. This way we may get a separate count for each folding construct, including classes, procedures, loops etc.

Alexander S. Klenin

Reply by email