google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

Comment block not re-wrapped - 100 characters column limit violated

Open Djaytan opened this issue 2 years ago • 1 comments

Putting that:

/*
 * Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
 */

Doesn't lead to a re-wrap of the too long single line while it is mentioned on the Google Java Style Guide the following:

Tip: When writing multi-line comments, use the /* ... */ style if you want automatic code formatters to re-wrap the lines when necessary (paragraph-style). Most formatters don't re-wrap lines in // ... style comment blocks.

So I suppose this is a bug.

Reproducible with:

  • IntelliJ IDEA plugin v1.16.0.2 (latest version available today)
  • fmt-maven-plugin (Spotify) v2.20 (latest version available today)

Djaytan avatar Jul 20 '23 08:07 Djaytan

Hello,

Just a comment to confirm that the issue is still present in the version 1.25.2 of the formatter.

Djaytan avatar Mar 04 '25 18:03 Djaytan