Disabling warnings in D-Scanner: looking for suggestions

Dennis dkorpel at gmail.com
Wed Mar 25 12:45:44 UTC 2020


On Wednesday, 25 March 2020 at 11:50:14 UTC, CodeMyst wrote:
> And about the use of multiple linters, is there even another 
> linter for D available?

dmd can give warnings about unreachable code even in generic 
template code.
I don't think you can suppress them, but if a way to suppress 
them is added, it won't be a 'dscanner' comment, it will be 
another mechanism.

That aside, it's true that currently D-Scanner is the only 
dedicated D linter. My concern comes from some over-linted 
TypeScript/Java projects I've worked on in the past, where the 
automatic code-formatter would battle it out with the style 
checker, or Eclipse would want it one way while PMD / Findbugs 
want it another way.

Maybe this won't become a problem for D, but I'm simply wary of a 
design based on the idea that D-scanner is the one and only 
linter for D code.



More information about the Digitalmars-d mailing list