Skip to content

New lint: enforce import renaming #7276

@DevinR528

Description

@DevinR528

What it does

Check imports are renamed according to a config list (similar to disallowed_method).

Categories

  • Nursery

This is a style lint so consistency and readability (subjective).

Drawbacks

None 🤷

Example

use serde_json::Value;

Could be written as:

use serde_json::Value as JsonValue;

If everyone is ok with this in the nursery I can open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions