mapstruct / mapstruct/mapstruct-idea
Support passing custom annotations to generated code
還沒有人認領這個 Issue。
- 主要語言
- Java
- 星號
- 168
- 分支
- 41
- PR 合併指標
- 30 天內沒有已合併 PR
描述
With the work in PR https://github.com/mapstruct/mapstruct/pull/2792 being done for https://github.com/mapstruct/mapstruct/issues/1574 it would be good to provide some support for the new API in the IntelliJ plugin as well.
Some things that we should do:
- [ ] Auto completion support for `AnnotateWith.Element#name` and error when `name` does not exist in target enum.
- [ ] Smart auto completion for `AnnotateWith.Element#classes` (pick the class type based on the one in the annotation
- [ ] Auto completion for `AnnotateWith.Element#enums` and error when enum value does not exist
- [ ] Annotation cannot annotated the generated class / method (it doesn't have the right target element type)
- [ ] Error when more than one value type is provided, eg. `shorts()` and `strings()`
- [ ] Error when duplicated `AnnotateWith.Element#name` (more than one having the same name
- [ ] Error when value does not match target annotation value type
- [ ] Error when using array value, but target value is not an array
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先閱讀 PR #2792 和 issue #1574,以了解新的 AnnotateWith API,接著檢查 IntelliJ 外掛程式現有的產生註解支援。完成條件是實作並驗證列出的補全和錯誤檢查,包括目標相容性、重複名稱、值型別和陣列。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- devtools
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100