Skip to content

Google Java Format doesn't reflow long strings #924

Closed
@tbroyer

Description

@tbroyer

Using either Maven (2.12.3) or Gradle (5.14.3), with various versions of Google Java Format (including the latest, 1.11.0), Spotless doesn't reflow long strings.

This is similar to google/google-java-format#566 and google/google-java-format#642 for the GJF IntelliJ and Eclipse plugins.

Spotless would have to explicitly call StringWrapper.wrap(). This has been added in GJF 1.8.

Maybe there should be a configuration flag to disable it, similar to GJF's command-line --skip-reflowing-long-strings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions