Skip to content

Releases: palantir/palantir-java-format

0.3.6

06 Dec 16:16
42760d2
Compare
Choose a tag to compare
Type Description Link
Improvement Never put field annotations on the same line as the field declaration. #102

0.3.5

06 Dec 15:35
4e8670d
Compare
Choose a tag to compare
Type Description Link
Fix Bring back inlining the prefix of method calls iff the levels inlined so far have all been simple. This fixes the regression introduced in 0.3.4 where long nested method calls would end up with too many indents. #99

0.3.4

04 Dec 17:41
9e8a0c4
Compare
Choose a tag to compare
Type Description Link
Fix Stop indiscriminately stopping an inlining at method calls like SafeArg.of. #94

0.3.3

27 Nov 16:57
2fdb758
Compare
Choose a tag to compare
Type Description Link
Fix Get rid of constant error in new Intellij 193 by replacing CodeStyleManager programmatically. #51
Fix "Before commit -> Reformat code" now correctly uses the PJF formatter if it is enabled, rather than the IntelliJ default formatter. #80
Fix When inlining a level's leading docs, check that no breaks were introduced more robustly. #85

0.3.2

12 Nov 21:07
b99c1ee
Compare
Choose a tag to compare
Type Description Link
Fix Limit dotted chains for expressions starting with constructor. #71

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