Skip to content

Add an option to allow one to opt-out of adding empty import lists #118

@ThomasLamprecht

Description

@ThomasLamprecht

While it might be OK by default to add empty import () statement to use statements that do not already import something so that they are future proofed against new default-exports it still adds a lot of noise and in bigger code bases that are under control by the same org it doesn't gains much value.

That's why I'd like to request a new option to opt-out of adding such "empty import statements" (or however they are called).

E.g., as of now the following line:

use Foo::Bar;

Always becomes

use Foo::Bar ();

With the newly proposed option that line should stay the same, at least if Foo::Bar is used at all.

Thanks for your consideration and for this module in general!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions