How to warn of unused imports?

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 8 00:50:17 PST 2016


V Mon, 08 Feb 2016 08:25:09 +0000
cy via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> napsáno:

> When I factor out code from my modules, it really, really often 
> leaves import statements that just sit there doing nothing, 
> making it look like my program is more complex than it is. How do 
> I get warned for leaving those, and a list of which ones I can 
> safely remove?

I dont think there is a way right now. But in a future dscanner.
https://github.com/Hackerpilot/Dscanner/issues/134



More information about the Digitalmars-d-learn mailing list