You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Option to enable JavaDoc formatting for Palantir code formatter #1995
Formatting JavaDoc can be very helpful when writing docs, especially to add the appropriate line breaks so that text is not longer than the configured line width.
Palantir, which is based on the Google formatter, supports formatting JavaDoc.
According to the comments palantir/palantir-java-format#724, the intended way forward is that it should stay disabled by default, but tools may expose an option to enable it.
After taking a quick look, all we would have to do is to add an option formatJavadoc to the Palantir settings, pass on that configuration value to PalantirJavaFormatFormatterFunc, and add .formatJavadoc(formatJavadoc) when creating the formatter options.
I would take a look at a PR if adding such an option is OK?
Activity
Goooler commentedon Jan 14, 2024
That would be awesome!
Goooler commentedon Jan 14, 2024
Links #1287.
Implements diffplug#1995, flag to format JavaDoc for Palantir formatter
flag to format JavaDoc for Palantir formatter (#2009 fixes #1995)