mapstruct / mapstruct-idea

An IntelliJ IDEA plugin for working with MapStruct
Other
141 stars 38 forks source link

ignore withXZY fluent setter #150

Open jomu78 opened 1 year ago

filiphr commented 1 year ago

Thanks for this PR @jomu78. I like the idea of it. However, I would prefer if we do not tie ourselves to withXYZ. I would prefer if we offer users to define their own templates that would mark methods as ignored.

If possible this should also be a project specific configuration, since it is related to usage of a specific custom accessor naming strategy I guess.

Another alternative would also be to provide some kind of a hook point (e.g. providing templates in custom accessor naming strategy implementations) that would be able to define if some methods should be implemented or not. Then we can load and check those from the plugin if we have things in the project.