Skip to content

Formatter merges pipelines (and everything, including documentation comments) in a single row #812

@str-ay

Description

@str-ay
Steps To Reproduce

1.1

return extractId(req).flatMap(cmsID -> service.find(cmsID))
            .flatMap(item -> ServerResponse.ok().syncBody(item))
            .doOnError(e -> log.debug(e.getMessage()))
            .onErrorResume(this::handleError);

1.2

+ "  spherical: true," 
+ "  query: {" 
+ "      status: 'publish',"
+ "      $or: [{endDate: {$gt: new Date()}}, {endDate: {$exists: false}}]" 
+ "  },"
  1. Alt Shift F / cmd k, f
Current Result

1.1

return extractId(req).flatMap(cmsID -> service.find(cmsID)).flatMap(item -> ServerResponse.ok().syncBody(item))
                .doOnError(e -> log.debug(e.getMessage())).onErrorResume(this::handleError);

1.2

+ "  spherical: true," + "  query: {" + "      status: 'publish',"
+ "      $or: [{endDate: {$gt: new Date()}}, {endDate: {$exists: false}}]" + "  },"
Expected Result

do not touch line breaks, please.
...or do not touch line breaks, when line starts with dot
(code, /** doc comments */ )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions