Code size without documentation comments and unittests

Andrei Alexandrescu via Digitalmars-d digitalmars-d at
Sun Feb 26 16:59:00 PST 2017

On 2/26/17 4:53 PM, hmm wrote:
> On Sunday, 26 February 2017 at 21:25:52 UTC, Andrei Alexandrescu wrote:
>> On 02/26/2017 01:37 AM, Seb wrote:
>>> That been said DUB is a build tool and it's good to be in verbose in
>>> case of errors and there's `-q` which you can use as expected, e.g:
>>>> dub run dscanner -q -- --sloc .
>> Cool, that does it for me. Thanks! -- Andrei
> Are you sure?
>> The "--sloc" or "-l" option prints the number of lines of code in the
>> file. Instead of simply printing the number of line breaks, this
>> counts the number of semicolon, while, if, do, else, switch, for,
>> foreach, foreach_reverse, default, and case tokens in the file.
> Which means it includes code in unittests.

Apparently I was wrong. Thanks for the correction! -- Andrei

More information about the Digitalmars-d mailing list