google / google/google-java-format
Comment block not re-wrapped - 100 characters column limit violated
- 主要語言
- Java
- 星號
- 6.2k
- 分支
- 937
- 平均合併
- 6 分鐘
- 30 天內合併 PR
- 3
描述
Putting that:
```java
/*
* Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
*/
```
Doesn't lead to a re-wrap of the too long single line while it is mentioned on the [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html) the following:
> Tip: When writing multi-line comments, use the /* ... */ style **if you want automatic code formatters to re-wrap the lines** when necessary (paragraph-style). Most formatters don't re-wrap lines in // ... style comment blocks.
So I suppose this is a bug.
Reproducible with:
* IntelliJ IDEA plugin v1.16.0.2 (latest version available today)
* [fmt-maven-plugin](https://github.com/spotify/fmt-maven-plugin) (Spotify) v2.20 (latest version available today)
貢獻指南
研究方向
未指定原始檔案或測試。先使用 google-java-format、IntelliJ IDEA plugin v1.16.0.2 或 fmt-maven-plugin v2.20 重現 Java 區塊註解案例,然後追蹤註解的重新換行及其 100 個字元的限制。當 /* ... */ 區塊中的長段落會自動重新換行時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100