Hi all, I’m looking into making a custom ktlint rule that enforces named arguments everywhere. How would I go about doing something like this where I need to have context from the code being linted, ie the names of the arguments? or is this not possible?
s
Sha Sha Chu
06/19/2022, 10:12 PM
I suspect you could write a rule that enforces that you are using named arguments but you wouldn't be able to know if they were the correct names
u
U9G
06/19/2022, 10:24 PM
Yeah, I’ve already done the rule. I’m curious if there is some way to get context from the code like functions, arg names, etc