Skip to content

add lint for prevent global import #1228

Closed
@little-dude

Description

@little-dude

Clippy already wans when importing all the variants of an enum. But this is still allowed:

use crate::*;

This kind of global import makes the code more difficult to read since we don't know where symbols come from. It may also confuse IDEs. Could we add a lint to prevent this?

Link to the relevant reddit discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-styleLint: Belongs in the style lint groupT-ASTType: Requires working with the ASTgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions