google / google/google-java-format

Provide an option to disable import ordering or customize order

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

描述

I'm working on a project ([Apache Flink](https://github.com/apache/flink)) using AOSP format but with [customized import ordering](https://github.com/apache/flink/blob/e0240c782073f879a1a1e3fe22b45a38ee499c45/pom.xml#L2123-L2126). I manually set the order in `Preferences | Editor | Code Style | Java | Imports | Import Layout`, but `google-java-plugin` will override my settings when I use "Optimize Imports".

Is it possible to provide an option to disable the feature, or let users to customize the import order? Thanks!

貢獻指南

開啟貢獻指南

研究方向

首先檢查 google-java-format 如何處理 IDE 的 "Optimize Imports" 動作,以及 issue 中描述的 import-order 行為。確定預期實作是停用選項、可自訂排序,還是兩者兼具,然後為選定的行為定義涵蓋範圍。

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

評估

技術堆疊
java
領域
tooling
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

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

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