You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then the part (0..9).toList() is marked with the following message: detekt - ForEachOnRange: Using the forEach method on ranges has a heavy performance cost. Prefer using simple for loops.
I would expect, that the toList() Method creates a List<Int>, where i can do the forEach safely.
When i write
Then the part
(0..9).toList()
is marked with the following message:detekt - ForEachOnRange: Using the forEach method on ranges has a heavy performance cost. Prefer using simple for loops.
I would expect, that the
toList()
Method creates aList<Int>
, where i can do theforEach
safely.When i write
no warning comes up (despite another warning complaining the magic number 9, but this is another Story).
Did i understand something wrong?
The text was updated successfully, but these errors were encountered: