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
I ran it on our project in linter mode. The first error I got was preferForLoop. I thought that it's interesting that SwiftFormat considers that it's a bad practice to use forEach, and recommands using a for loop instead. However, I was left a bit curious as to whyforEach is a bad practice.
I looked around in discussions on this project, but couldn't find a place where the motivation/rational beyind each rule is.
What would you think about adding this extra piece of information? I think it could help developers to know why a pattern is to be avoided, in addition to pointing it out.
Thank you 🙇♂️
The text was updated successfully, but these errors were encountered:
Hi,
Thank you for this great project!
I ran it on our project in linter mode. The first error I got was
preferForLoop
. I thought that it's interesting that SwiftFormat considers that it's a bad practice to useforEach
, and recommands using afor loop
instead. However, I was left a bit curious as to whyforEach
is a bad practice.I looked around in discussions on this project, but couldn't find a place where the motivation/rational beyind each rule is.
What would you think about adding this extra piece of information? I think it could help developers to know why a pattern is to be avoided, in addition to pointing it out.
Thank you 🙇♂️
The text was updated successfully, but these errors were encountered: