Code size without documentation comments and unittests
hmm via Digitalmars-d
digitalmars-d at puremagic.com
Sun Feb 26 13:53:52 PST 2017
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.
https://github.com/Hackerpilot/Dscanner
Which means it includes code in unittests.
More information about the Digitalmars-d
mailing list