google / google/google-java-format

Avoid excessive newlines for short variable names with --aosp

Aberta
#970 0 comentários 2 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Java
Estrelas
6.2k
Forks
937
Merge médio
6min
PRs com merge (30d)
3

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.