Releases: palantir/palantir-java-format
Releases · palantir/palantir-java-format
0.3.1
Type |
Description |
Link |
Improvement |
Limit how far dots may appear in long method chains to 80 chars.
Note that this doesn't currently apply to prefixes (such as foo.bar().baz().stream() ) because prefixes are also used to group together fully qualified class names and it's a bit trickier to handle that case. |
#70 |
0.3.0
Type |
Description |
Link |
Break |
Remove JavaFormatterOptions altogether from the API, the style now being baked in to be PALANTIR. |
#47 |
Improvement |
Expose formatSourceReflowStringsAndFixImports from the SPI, which formats a whole file returning the formatted file as a String. |
#47 |
Break |
Rename palantir-java-format-api to palantir-java-format-spi . |
#47 |
Break |
The standalone com.palantir.java-format plugin provides a formatDiff task. IntelliJ setup has been moved to a com.palantir.java-format-idea plugin. |
#48 |
0.2.8
Type |
Description |
Link |
Fix |
NON-NLS comments are moved behind + tokens in string concatenations. This is a heuristic that doesn't look at what the thing before the + is, so it might produce confusing results. |
#45 |
0.2.7
Type |
Description |
Link |
Improvement |
Prefer inlining method references after whatever expression they follow. |
#44 |
0.2.6
Type |
Description |
Link |
Improvement |
Stop breaking method invocations after ( except in very few particular circumstances. |
#37 |
Improvement |
A new FormatDiffCli class reads the output of git diff -U0 and runs the formatter on modified lines only. |
#39 |
0.2.5
Type |
Description |
Link |
Fix |
Reflow long strings more thoroughly, taking into account that once a string is broken, its first chunk might fit on the starting line and thus it needs to be reflowed again. |
#35 |
0.2.4
Type |
Description |
Link |
Improvement |
Allow long binary operations to wrap starting from the current line. |
#30 |
0.2.3
Type |
Description |
Link |
Fix |
Make Formatter.formatSourceAndFixImports work with the PALANTIR style. This can now be used to format a whole file including reflowing strings. |
#29 |
0.2.2
Type |
Description |
Link |
Improvement |
When using the gradle plugin, users will receive a notification to install the IntelliJ plugin |
#26 |