Best way to implement a typing-time error on DSL missing fields annotated as mandatory
已回答
I'd like to have a typing-time error whenever I don't specify DSL parameters marked as mandatory (via an annotation), like this one (unfortunately Android-only).
I tried with a static analyzer (detekt) but it looks this comes into play only when you manually compile the code. Someone mentioned also Arrow-meta (but I didn't get a clear answer on that).
So my next though was an Idea Plugin.
On the docs page, though, it's suggested that an Idea plugin may be overkill and to look at the alternative approaches, which are:
- Structural Search and Replace Inspections (it looks java-only)
- IDE Scripting Console
- Flora Plugin
- Live Plugin
- PhpStorm Advanced Metadata
Now, I don't know any of these, so I'd like to ask to anyone experienced in these fields which approach would be the right one for my case without being overkill
Thanks in advance
请先登录再写评论。
A plug-in looks like the best way in this case.