Code size without documentation comments and unittests

Guest via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 26 13:43:15 PST 2017


On Saturday, 25 February 2017 at 19:55:04 UTC, Timothee Cour 
wrote:
> 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

The SLOC count is incorrect in Dscanner, for example for 
https://github.com/Hackerpilot/Dscanner/blob/master/src/highlighter.d it indicates 38...


More information about the Digitalmars-d mailing list