google / google/google-java-format
Java or Java-like files with alternate extensions are skipped.
- 主要语言
- Java
- 星标
- 6.2k
- 派生
- 937
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 3
描述
Main.java has a very simple path extension check.
```java
for (String fileName : parameters.files()) {
if (!fileName.endsWith(".java")) {
errWriter.println("Skipping non-Java file: " + fileName);
continue;
}
```
Is there any reason alternate file extensions can't be formatting/supported? You can somewhat get around this by using standard input formatting and --assume-filename, so you can get around this with some additional tooling, but the restriction on the extension seems to be more out of an abundance of caution for throwing mixed source directories and folder structures.
My original intention was to see how well GJF does on AIDL files which kicked of my investigation into my options.
贡献指南
评估
这个 Issue 还没有评估数据。