Skip to content

Unsorted extern-crate/use/mod/… statements #881

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 · 2 comments
Closed

Unsorted extern-crate/use/mod/… statements #881

regexident opened this issue Apr 25, 2016 · 2 comments

Comments

@regexident
Copy link

In addition (or as alternative) to https://github.com/Manishearth/rust-clippy/issues/880 I'd love to have a lint that warns on mal-sorted use statements inside a group.

So that this would trigger a warning:

use lorem::ipsum::{dolor, sit, amet};
use consectetur;
use adipiscing::elit;

while this wouldn't:

use adipiscing::elit;
use consectetur;
use lorem::ipsum::{amet, dolor, sit};

This is would probably be a candidate for pedantic.

@llogiq
Copy link
Contributor

llogiq commented Apr 25, 2016

Again, this is very opinionated and probably more suited to rustfmt.

@regexident
Copy link
Author

Fair point. And there appears to be an issue for it already: rust-lang/rustfmt#298.

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