Skip to content

Scattered extern-crate/use/mod/… statements #880

Closed
@regexident

Description

@regexident

In addition to https://github.com/Manishearth/rust-clippy/issues/879 I'd love to have a lint that enforces my header statements (extern crate …, mod …, use …, …) to be cleanly grouped.

So that this would trigger a warning:

mod;

use std::;

mod;

While this wouldn't:

mod;
mod;

use std::;

Nor would this:

use std::;

mod;
mod;

Bonus points for warning on missing/excessive newlines between groups.

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