-
Notifications
You must be signed in to change notification settings - Fork 458
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
Control static import placement #306
Comments
There is not, but that would be a great feature to have! Our import sorter has a few hairy bits. #167 (minor bug that explains the background of import sorter, and how to do what you want to do) Possibly related, #232 is about incorporating the eclipse |
Also looks like #305 can get lumped in to the ImportSorter mess :) |
There are examples of configuration static imports in ImportOrderStepTest by using |
This issue is still valid and needs to be resolved, because formatting file in IDE differs from spotless config. |
Thanks for verifying. PR’s welcome! |
@azizbekian Did you see @teur's comment? I have this config in a project and it puts static imports at the bottom:
|
Like @teur mentioned, adding |
Looks like this issue is solved. Thanks all! |
I tried many times, but seems the issue is still there. |
Is there a way to configure Spotless so that static imports in Java/Groovy are put below normal imports? That's IntelliJ default...
I cannot find anything about it in docs, but I think the behavior should be documented and configurable.
The text was updated successfully, but these errors were encountered: