jhipster / jhipster/prettier-java

Support for rangeStart/rangeEnd

Aperta
#487 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
1.2k
Fork
120
Merge medio
1g 14h
PR unite (30g)
27

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.