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
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?
The text was updated successfully, but these errors were encountered:
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.
In palantir/palantir-java-format#152 they've disabled the formatting of JavaDoc by hardcoding a "false" value.
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 toPalantirJavaFormatFormatterFunc
, and add.formatJavadoc(formatJavadoc)
when creating the formatter options.I would take a look at a PR if adding such an option is OK?
The text was updated successfully, but these errors were encountered: