redhat-developer / redhat-developer/vscode-java
Formatter merges pipelines (and everything, including documentation comments) in a single row
Open
Nobody has claimed this yet.
formatter
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
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}}]"
+ " },"
- 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 */ )
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named in the issue. Reproduce the formatter behavior with the provided Java and documentation-comment examples using Alt+Shift+F or cmd+k,f, then verify that existing line breaks, especially lines beginning with a dot, remain unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100