I want to ignore the new rule for converting forEach loop to for loop, so I added --anonymousforeach ignore to my .swiftformat file (also tried with --anonymousforeach preserve), but still when I'm running swiftformat . it will convert my forEach loop to for loop.
Hi,
I want to ignore the new rule for converting
forEach
loop tofor loop
, so I added--anonymousforeach ignore
to my.swiftformat
file (also tried with--anonymousforeach preserve
), but still when I'm runningswiftformat .
it will convert myforEach
loop tofor
loop.Any help or suggestion would be appreciated.
Best