Code size without documentation comments and unittests

Timothee Cour via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 25 11:55:04 PST 2017


Try dscanner --sloc although IMO --tokenCount should be the most relevant
metric (only caveat is mixin strings with which one could cheat to make
token count smaller).
TokenCount formatting invariant

On Feb 25, 2017 11:36 AM, "Andrei Alexandrescu via Digitalmars-d" <
digitalmars-d at puremagic.com> wrote:

What would be a simple way to count the "effective" lines in a module, i.e.
excluding ddoc comments and unittests? Having a tool for that in tools/
would be neat. -- Andrei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20170225/085a059a/attachment.html>


More information about the Digitalmars-d mailing list