Skip to content

Indentation issues since 2.3.0 #601

Closed
@MLNW

Description

@MLNW

Prettier-Java 2.3.0

{
  "useTabs": false,
  "trailingComma": "none",
  "printWidth": 100,
  "tabWidth": 2,
  "plugins": ["prettier-plugin-java"],
  "overrides": [
    { "files": "*.java", "options": { "tabWidth": 4 } }
  ]
}

Input:

            fileSystemDetails =
                FileHandlerDetails
                    .builder()
                    .fileSystemType(
                        EntityUtils.update(
                            entity.getFileSystemDetails().getFileSystemType(),
                            update.getFileSystemDetails().getFileSystemType()
                        )
                    )

Output:

            fileSystemDetails =
            FileHandlerDetails
                .builder()
                .fileSystemType(
                    EntityUtils.update(
                        entity.getFileSystemDetails().getFileSystemType(),
                        update.getFileSystemDetails().getFileSystemType()
                    )
                )

Expected behavior:

The input should stay the same.

Workaround:

Stay on v2.2.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    $$ bug-bounty $$https://www.jhipster.tech/bug-bounties/$100https://www.jhipster.tech/bug-bounties/area: bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions