High level question: is there any way to have detekt enforce that you use named arguments? Specifically, I was thinking this would be helpful for methods or constructors that have say at least 3 arguments.
I haven't found anything in the detekt config that relates to this, but I'm also not sure if it's possible - how would static analysis know if the method I'm calling supports named arguments - it might not if it's a java interrop, right?
adam-mcneilly
11/21/2019, 4:02 PM
If there's more to discuss here I'm happy to open an issue.
s
schalkms
11/21/2019, 6:40 PM
This is a good example for a custom domain-specific rule that you could implement for you and your team.
Detekt allows custom rules by using the