Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
regexident opened this issue Apr 25, 2016 · 4 comments
Closed

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

regexident opened this issue Apr 25, 2016 · 4 comments

Comments

@regexident
Copy link

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.

@regexident
Copy link
Author

This is would probably be a candidate for pedantic.

@regexident
Copy link
Author

Probably another candidate for rustfmt. Oh well. Sorry for spamming (#879, #880, #881). 😇 😞

@llogiq
Copy link
Contributor

llogiq commented Apr 25, 2016

No problem. We're just pushing back because we think your time is better spent with other lints. 😄

@regexident
Copy link
Author

regexident commented Apr 25, 2016

😘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants