google / google/google-java-format

Should the formatter also add missing braces

Aperta
#51 9 commenti 26 reazioni 0 assegnatari Vedi su GitHub
non-whitespace
Lingua principale
Java
Stelle
6.2k
Fork
937
Merge medio
6m
PR unite (30g)
3

Descrizione

To correct any violation of https://google.github.io/styleguide/javaguide.html#s4.1.1-braces-always-used

Currently it looks like a code that is formatted like

``` java
if (condition)
do_something
```

would be formatted (after running the tool) as:

``` java
if (condition) do_someting
```

where as I would expect it to be formatted as:

``` java
if (condition) {
do_something
}
```

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.