Skip to content

[Feature Request]: Add a rule against unused imports #58

@strangerkir

Description

@strangerkir

Is your feature request related to a problem?

After code refactoring or merging, we often have redundant namespace imports with the use keyword. This is a dead code that does nothing but pollution. It's easy to overlook these lines.

Describe the desired solution

Add a sniff raising warning or error on redundant namespace imports.

Describe the alternatives that you have considered

Require the code standard with this rule and just use it.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions