Skip to content
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

Organise imports #966

Closed
mwz opened this issue Jun 29, 2019 · 3 comments
Closed

Organise imports #966

mwz opened this issue Jun 29, 2019 · 3 comments

Comments

@mwz
Copy link

mwz commented Jun 29, 2019

It seems that scalafix used to be able to organise imports (#46), but this functionality seems to have been removed (or it was never completed?). Do you have any plans to bring organising imports to scalafix in the near future? I'm asking in the context of being able to integrate this into metals further down the line (https://github.com/scalameta/metals-feature-requests/issues/7), but obviously before that is going to be possible this functionality first needs to be implemented in this project as a standalone rule.

Is there any existing discussion about this feature where others can get involved? Have you guys discussed this already and do you have any ideas on how this could be implemented? Are there any technical limitations in scalafix or scalameta/semanticdb that would block this work?

@LukaszByczynski
Copy link

There is plugin for that: https://github.com/NeQuissimus/sort-imports

@bjaglin
Copy link
Collaborator

bjaglin commented May 25, 2020

See also https://github.com/liancheng/scalafix-organize-imports

@bjaglin
Copy link
Collaborator

bjaglin commented Jun 15, 2020

I am closing this as the 2 suggestions above are hopefully mature enough to cover your needs, and the specific metals needs are handled in https://github.com/scalameta/metals-feature-requests/issues/40#issuecomment-616419526.

@bjaglin bjaglin closed this as completed Jun 15, 2020
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

3 participants