google / google/google-java-format
Should the formatter also add missing braces
Đang mở
non-whitespace
- Ngôn ngữ chính
- Java
- Star
- 6.2k
- Fork
- 937
- Merge trung bình
- 6 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
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
}
```
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.