Another question. I have a lot of `NamedArguments`...
# detekt
d
Another question. I have a lot of
NamedArguments
violation for stuff like this
Copy code
combine(myFlow, otherFlow, anotherFlow, ::Triple)
I don't want to turn this into
Copy code
combine(flow = myFlow, flow2 = otherFlow, flow3 = anotherFlow, transform = ::Triple)
Luckily I've found
ignoreFunction
is a thing. But when I do
Copy code
NamedArguments:
  ignoreFunction:
    - kotlinx.coroutines.flow.combine
errors don't go away. Tried wrapping it in single quotes, tried doing
ignoreFunction: [ 'kotlinx...combine' ]
instead, still nothing. Is this a bug? this function is not part of some class, it's a top-level one
s
I guess the problem might be due to this:
_Note_: this Suppressor doesn’t suppress issues found when you call these functions. It just suppresses the ones in the function definition.
https://detekt.dev/docs/introduction/suppressors#function-suppressor
d
oh, right. so no luck in this case 🙂 I guess there's no way to turn off this rule for
combine
calls exclusively
b
It's not possible right now. But a new suppressor adding that could be implemented.
d
Can suppressors use type resolution? I guess this will be needed in this case.
to get fqcn of a function
b
Sure they can