google / google/google-java-format

Avoid excessive newlines for short variable names with --aosp

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

説明

I'm trying this out in chromium codebase, and besides the known-issue of excessive lambda whitespace (issue #19), I'm finding the most jarring thing is odd whitespace for variable assignments.

google-java-format does:

```
desc =
getResources()
.getString(R.string.cablev2_error_ble_permission, packageLabel);
```

instead of:
```
desc = getResources()
.getString(R.string.cablev2_error_ble_permission, packageLabel);
```

I'm guessing it might be because with two space indents, the wrapped line appears under the = sign (which looks less weird), but with four space indent, it looks really odd

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

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

評価

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

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

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