Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Djaytan opened this issue Jul 20, 2023 · 0 comments
Open

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

Djaytan opened this issue Jul 20, 2023 · 0 comments

Comments

@Djaytan
Copy link

Djaytan commented Jul 20, 2023

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 Djaytan changed the title Comment block not re-wrapped by formatter Comment block not re-wrapped Jul 20, 2023
@Djaytan Djaytan changed the title Comment block not re-wrapped Comment block not re-wrapped - 100 characters column limit violated Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant