google / google/google-java-format

google-java-format does not enforce rules 2.3.1 (inside strings) or 2.3.2

未關閉
#158 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
non-whitespace
主要語言
Java
星號
6.2k
分支
937
平均合併
6 分鐘
30 天內合併 PR
3

描述

https://google.github.io/styleguide/javaguide.html#s2.3.1-whitespace-characters

The 2.3.1 problem is only in the sentence "All other whitespace characters in string and character literals are escaped": google-java-format doesn't replace a literal tab inside a string with \t.

貢獻指南

開啟貢獻指南

研究方向

先從 Google Java Style Guide 的 2.3.1 和 2.3.2 節開始,然後找到 formatter 對字串字面值和字元字面值的處理。為所述的字面值定位字元情況以及 2.3.2 中剩餘的行為加入覆蓋,並驗證格式化會產生所需的跳脫輸出。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。