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
gammax
11/02/2020, 4:09 PM
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.