When running `detekt` task, it complains about `Sp...
# detekt
l
When running
detekt
task, it complains about
SpreadOperator
. The docs state:
When type resolution is enabled in detekt this case will not be flagged by the rule since it doesn’t suffer the performance penalty of an array copy.
Does it mean
detekt
shouldn't detect that issue?
g
If you run Detekt with type resolution enabled, the inspection has more context and can actually understand if your usage of the spread operator is valid or not.
l
I'm using the spread operator like this:
Copy code
arrayOf(
            Libraries.APPCOMPAT,
            *Libraries.KotlinExt.getAll(),
            Libraries.TIMBER
    ).forEach { implementation(it) }
Just wanna know, if it wouldn't be detected when type resoltuin is enabled and spread operator used properly?