detekt.ReturnCount
Best practice
Minor
Function has 3 return statements which exceeds the limit of 2.
Codiga provides multiple set of rules for 12+ languages. Below we provide a link and a description for all the rules supported by our platform. Note that not all the rules are being listed and described below.
Function has 3 return statements which exceeds the limit of 2.
In most cases using a spread operator causes a full copy of the array to be created before calling a method which has a very high performance penalty.
Function parameter is unused