google / google/google-java-format

Should the formatter also add missing braces

オープン
#51 コメント 9 件 リアクション 26 件 担当者 0 名 GitHub で見る
non-whitespace
主要言語
Java
スター
6.2k
フォーク
937
平均マージ
6分
マージ済み PR(30日)
3

説明

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
}
```

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

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

評価

この issue はまだ評価されていません。

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

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