You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use maven spotless plugin for java formatting in Eclipse format. In some cases it seems spotless:check doesn't shows errors on wrong formatting and spotless:apply doesn't apply changes.
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${com.diffplug.spotless.plugin.version}</version>
<configuration>
<java>
<eclipse></eclipse> <!-- we use formatting from the file, but same issue is with default Eclipse formatting -->
<importOrder>
<order>java,javax,org,com</order>
</importOrder>
<removeUnusedImports/>
</java>
</configuration>
</plugin>
Simplified java class when formatting is not applied (here are doubled empty lines that are not allowed):
Hi,
We use maven spotless plugin for java formatting in Eclipse format. In some cases it seems
spotless:check
doesn't shows errors on wrong formatting andspotless:apply
doesn't apply changes.Spotless maven plugin version: 2.43.0.
Maven version: 3.8.4
OS: Windows 10 Enterprise, 22H2
Spotless configuration:
Simplified java class when formatting is not applied (here are doubled empty lines that are not allowed):
It seems that issue is somehow related to
when
, because on code below formatting is applied:The text was updated successfully, but these errors were encountered: