If you have the following configuration:
importOrder('java', 'javax', '', 'acme', 'com.acme', '\\#')
Spotless will sort the static imports like this:
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
import static org.hamcrest.Matchers.*;
But IntelliJ IDEA will sort the static imports like this:
import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static org.hamcrest.Matchers.*;
This causes constant fighting between IDEA and Spotless so it would be nice if we could configure spotless to say that the wildcard always comes last.
If you have the following configuration:
Spotless will sort the static imports like this:
But IntelliJ IDEA will sort the static imports like this:
This causes constant fighting between IDEA and Spotless so it would be nice if we could configure spotless to say that the wildcard always comes last.