redhat-developer / redhat-developer/vscode-java

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

オープン
#812 コメント 7 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

formatter
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

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 */ )

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

issue ではソースファイルもテストも指定されていません。提供された Java とドキュメントコメントの例で Alt+Shift+F または cmd+k,f を使用して formatter の動作を再現し、その後、既存の改行、特にドットで始まる行が変更されずに維持されることを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, typescript
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。