[Issue 20442] New: Please add a warning that will complain about unused imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 11 03:18:41 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20442

          Issue ID: 20442
           Summary: Please add a warning that will complain about unused
                    imports
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: turkeyman at gmail.com

Please add an optional warning that will complain about unused imports.
I think this could be added to `-w`/`-wi`.

We want to have a warning that helps us find and clean up unused imports. It
should be trivial to keep a flag against import statements during symbol
lookup?

--


More information about the Digitalmars-d-bugs mailing list