jhipster / jhipster/prettier-java
Support for rangeStart/rangeEnd
- 主要言語
- Java
- スター
- 1.2k
- フォーク
- 120
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 31
説明
**Prettier-Java 1.2.0**
```sh
# Options (if any):
--range-start 19
--range-end 98
```
**Input:**
```java
package com.test;
public class Test {
public void sayHello() { System.out.println("hello"); }
}
```
**Output:**
```java
package com.test;
public class Test {
public void sayHello() { System.out.println("hello"); }
}
```
**Expected Output:**
```java
package com.test;
public class Test {
public void sayHello() {
System.out.println("hello");
}
}
```
**Expected behavior:**
It seems like passing range start/end cause nothing to get formatted, even though the code that should get reformatted is within the specified range. Is this just something that isn't implemented yet?
For some context, I was trying to speed up formatting within our IntelliJ integration by only formatting modified lines (although maybe it won't make a huge difference if we still need to parse the whole file)
コントリビューションガイド
調査の方向性
まず、formatter のエントリポイントでオプション --range-start と --range-end がどのように処理されるかを追跡し、次にその経路を issue で言及されている IntelliJ 統合コンテキストと比較します。提供されている Java 入力を範囲 19–98 で実行し、要求された範囲内にフォーマットが適用される一方で、ファイルの残りの部分も適切に処理されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100