Hi all, I’m looking into making a custom ktlint ru...
# ktlint
u
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
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
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