Hi Philipp and Scott!
Thank you for your feedback! I apologize for the friction caused by the initial output from S8445.
With Java 25 finalizing module imports, we believe this new construct necessitates checking the grouping and ordering of imports. However, our initial implementation proved too opinionated and, as you noted, conflicted with the Google Java Style Guide.
We are planning (SONARJAVA-6146) to relax the rule as follows:
import moduleshould come first.importandimport staticshould be grouped together, but their relative order will no longer be enforced.- On-demand (wildcard) imports will be treated the same as specific imports.
We believe these relaxed requirements are non-controversial, allowing us to keep the rule in the default quality profile. Please let us know if you have any further feedback or concerns!