We could switch to a better supported code formatter ? Not removing spotless, but using another java formatter such as google-java-format, eclipse jdt, clean-that... See https://github.com/diffplug/spotless/tree/main/plugin-maven#java
Le jeu. 28 nov. 2024 à 20:31, Benjamin Marwell <bmarw...@apache.org> a écrit : > Hello everyone! > > Sadly, palantir-java-format, used in Maven builds via spotless, still has > no support for text blocks and will misformat them. Also, it > still cannot parse anonymous lambda parameters (_). > > Text blocks are available since 14, this bugs me already. The anonymous > underscore parameter will become available for Maven on Java 21. > > I was not able to reach out to the maintainer. What should we do about it? > > Option 1: just not use both features > > Option 2: use text blocks and deal with misalignment > > Option 3: use text blocks and spam // spotless:off around those > > Option 4: ...? > > Input is appreciated. I found palantir/spotless very valuable and I > wouldn't want to ditch it from Maven. > > - Ben > -- ------------------------ Guillaume Nodet