Skip to content

Releases: palantir/palantir-java-format

0.3.1

12 Nov 19:35
750740b
Compare
Choose a tag to compare
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

22 Oct 16:20
bed3428
Compare
Choose a tag to compare
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

21 Oct 21:17
9b8a331
Compare
Choose a tag to compare
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

21 Oct 19:34
5b16d8f
Compare
Choose a tag to compare
Type Description Link
Improvement Prefer inlining method references after whatever expression they follow. #44

0.2.6

21 Oct 18:27
5f079f5
Compare
Choose a tag to compare
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

18 Oct 10:30
bbe519b
Compare
Choose a tag to compare
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

17 Oct 18:44
c9bb828
Compare
Choose a tag to compare
Type Description Link
Improvement Allow long binary operations to wrap starting from the current line. #30

0.2.3

17 Oct 15:38
Compare
Choose a tag to compare
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

16 Oct 18:31
2258795
Compare
Choose a tag to compare
Type Description Link
Improvement When using the gradle plugin, users will receive a notification to install the IntelliJ plugin #26

0.2.1

16 Oct 13:26
Compare
Choose a tag to compare
Type Description Link
Improvement Inline prefix of initializer for variable and field assignments too, not just declarations. #17
Improvement We are now publishing the intellij plugin to the plugin portal. See https://plugins.jetbrains.com/plugin/13180-palantir-java-format #24